1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
|
.\" -*-nroff-*-
.de TQ
.br
.ns
.TP \\$1
..
.TH LE 1 "28 Sep 2000"
.SH NAME
le \- full screen text editor
.SH SYNOPSIS
.B le
.I [options] filename
.SH DESCRIPTION
\fBle\fP is a text editor which offers wide range of capabilities
with a simple interface. It has a pull down menu and a simple help system
to get started. See \fBKEYS\fP section below to learn about key combinations.
.P
Among its features there are: various operations with stream and
rectangular blocks, search and replace with full regular expressions,
text formatting, undelete/uninsert, hex editing, tunable key sequences,
tunable colors, tunable syntax highlighting.
.P
The editor currently supports only one loaded file at a time.
.SH KEYS
Here are some starting hints:
.LP
.TP
.B F10 or C-n
menu
.TP
.B F1
help
.TP
.B C-x
exit (cancel)
.TP
.B Arrows
navigate
.P
In the editor the following key description is used:
.TP
.B Key1\-Key2
simultaneous key1 and key2 press
.TP
.B Key1+Key2
sequential keys press
.TP
.B Key1 | Key2
press Key1 OR Key2
.TP
.B ^Key
Ctrl-Key
.TP
.B ~Key
Shift-Key
.TP
.B ^~Key
Ctrl-Shift-Key | Alt-Key
.P
Some of ^Fx, ~Fx, ^~Fx can be typed as ESC+Fx.
.LP
The rest of key combinations can be seen in help, in menu and in the
keyboard map (default one can be seen with \fIle\ \-\-dump\-keymap\fP).
.P
There is support for block filtering through an external program, a command
output read-in, writing a block through a command. To read or write block
from/to a command, use F4+R or F4+W and file name of the following format:
``|command args''. Filtering is achieved by F4+| followed by command name.
.SH STATUS LINE
On the status line you can see current line, column, the size of loaded
file, the code of character under cursor, several one letter flags, file name,
offset in bytes from the file beginning and percent position in the file.
.P
One letters flags are: * - modified; R - Russian keyboard (works only on
certain terminals); I - insert, O - overstrike; A - autoindent; D - dos
style line terminators (CR NL); U - undelete possible, u - uninsert possible;
B - column block mode.
.SH TEXT PROTECTION
To prevent changes loss on crash, \fBle\fP regularly dumps the editing text,
if changed, to
.I "~/.le/tmp/FILENAME.PID",
where FILENAME is the file name with slashes converted to underlines; PID
is the process id of the editor process.
.P
When the editor gets a fatal signal, it also dumps the text, to
.I "~/.le/tmp/DUMP-SIG-FILENAME.PID",
where SIG is the signal number.
.SH OPTIONS
.TP
.B \-r, \-\-read\-only
Work as viewer, don't allow changes. If your system supports mmap(2),
it will be used to get file contents to memory.
.TP
.B \-h, \-\-hex\-mode
Start in hex mode
.TP
.B \-\-mmap
Use mmap(2) to load file read-only. Can be used to view very large files
or even devices. This implies \-h.
.TP
.B \-\-mmap\-rw
Use mmap(2) to load file read-write in MAP_SHARED mode. Use with caution --
the changes go directly to file or disk, no undo. In this mode only replace
can be used, but it allows editing of very large files or even devices.
This implies \-h.
.TP
.B \-\-multibyte
Force multibyte mode on. Multibyte mode is usually enabled
automatically as needed.
.TP
.B \-\-no-multibyte
Force multibyte mode off, even if it was automatically determined that
it should be on.
.TP
.B \-b, \-\-black\-white
Start in black & white mode
.TP
.B \-c, \-\-color
Start in color mode
.TP
.B \-\-dump\-keymap
Dump default keymap to stdout and exit
.TP
.B \-\-dump\-colors
Dump default color map to stdout and exit
.TP
.B \-\-version
Print the version of LE and exit
.TP
.B \-\-help
Print short description of options and exit
.SH ENVIRONMENT VARIABLES
The following environment variables are processed by \fBle\fR:
.IP "\fBHOME\fP"
Used for tilde (`~') expansion.
.IP "\fBLE_DEFAULT_EOL\fP"
The default EOL marker. It can be set to NL (\\n), CRNL (\\r\\n) or CR (\\r).
Also it can be set to any other 1-2 character string interpreted literally.
.IP "\fBTERM\fP, \fBLINES\fP, \fBCOLUMNS\fP"
These variables are used by \fIcurses\fR library for full-screen output.
.SH FILES
.TP
.BI DATADIR/colors
.TQ
.BI ~/.le/colors
.TQ
.BI DATADIR/colors\-$TERM
.TQ
.BI ~/.le/colors\-$TERM
Color palette description. Those files are sequentially read and color definitions
in later files have higher precision.
.TP
.BI ~/.le/keymap\-$TERM
.TQ
.BI DATADIR/keymap\-$TERM
.TQ
.BI ~/.le/keymap
.TQ
.BI DATADIR/keymap
Key map descriptions. Only the first existing file is read.
.TP
.BI ~/.le/term\-$TERM
.TQ
.BI DATADIR/term\-$TERM
Terminal specific options. Only the first existing file is read. Use Options\->Terminal
menu to tune the options.
.TP
.BI ./.le.ini
.TQ
.BI ~/.le/le.ini
.TQ
.BI DATADIR/le.ini
Options. Only the first existing file is read. Use menu Options to tune these.
.TP
.BI .le.syntax
.TQ
.BI ~/.le/syntax
.TQ
.BI DATADIR/syntax
Syntax highlighting rules. Only the first existing file is read. There is no
default built-in in the editor, so if those files are not present you won't see
any syntax highlighting.
.TP
.BI ~/.le/mainmenu
.TQ
.BI DATADIR/mainmenu
Main editor menu. It has simple text format. Only the first existing file is read.
.TP
.BI ~/.le/history
Various histories are saved here. Do not edit by hand.
.P
\fBDATADIR\fP is determined at compile time by configure script
(pkgdatadir variable). By default it has value \fI/usr/local/share/le\fP.
.SH AUTHOR
The \fBLE\fP editor was written by Alexander V. Lukyanov <lav@yars.free.net>.
|