1995-08-30 07:28:06 +00:00
|
|
|
.\"
|
1999-08-28 01:08:13 +00:00
|
|
|
.\" $FreeBSD$
|
1998-02-02 07:09:36 +00:00
|
|
|
.\"
|
|
|
|
.Dd August 30, 1995
|
|
|
|
.Dt EE 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm ee
|
|
|
|
.Nd easy editor
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm ee
|
|
|
|
.Op Fl eih
|
|
|
|
.Op +#
|
|
|
|
.Op Ar
|
|
|
|
.Nm ree
|
|
|
|
.Op Fl eih
|
|
|
|
.Op +#
|
|
|
|
.Op Ar
|
|
|
|
.Sh DESCRIPTION
|
1995-08-30 07:28:06 +00:00
|
|
|
The command
|
1998-02-02 07:09:36 +00:00
|
|
|
.Nm
|
1995-08-30 07:28:06 +00:00
|
|
|
is a simple screen oriented text editor. It is always in text insertion
|
|
|
|
mode unless there is a prompt at the bottom of the terminal, or a
|
|
|
|
menu present (in a box in the middle of the terminal). The command
|
1998-02-02 07:09:36 +00:00
|
|
|
.Nm ree
|
1995-08-30 07:28:06 +00:00
|
|
|
is the same as
|
1998-02-02 07:09:36 +00:00
|
|
|
.Nm Ns ,
|
1995-08-30 07:28:06 +00:00
|
|
|
but restricted to editing the named
|
|
|
|
file (no file operations, or shell escapes are allowed).
|
1998-02-02 07:09:36 +00:00
|
|
|
.Pp
|
1995-08-30 07:28:06 +00:00
|
|
|
For
|
1998-02-02 07:09:36 +00:00
|
|
|
.Nm
|
1995-08-30 07:28:06 +00:00
|
|
|
to work properly, the environment variable
|
1998-02-02 07:09:36 +00:00
|
|
|
.Ev TERM
|
1995-08-30 07:28:06 +00:00
|
|
|
must be set to indicate the type of terminal being used. For
|
|
|
|
example, for an
|
1998-02-02 07:09:36 +00:00
|
|
|
.Tn HP 700/92
|
1995-08-30 07:28:06 +00:00
|
|
|
terminal, the
|
1998-02-02 07:09:36 +00:00
|
|
|
.Ev TERM
|
1995-08-30 07:28:06 +00:00
|
|
|
variable should be set to "70092". See your System Administrator if
|
|
|
|
you need more information.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Pp
|
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl e
|
|
|
|
Turn off expansion of tab character to spaces.
|
|
|
|
.It Fl i
|
|
|
|
Turn off display of information window at top of terminal.
|
|
|
|
.It Fl h
|
|
|
|
Turn off highlighting of borders of windows and menus (improves
|
1995-08-30 07:28:06 +00:00
|
|
|
performance on some terminals).
|
1998-02-02 07:09:36 +00:00
|
|
|
.It Sy +#
|
|
|
|
Move the cursor to line '#' at startup.
|
|
|
|
.El
|
|
|
|
.Ss "Control keys"
|
1995-08-30 07:28:06 +00:00
|
|
|
To do anything other than insert text, the user must use the control
|
|
|
|
keys (the
|
1998-02-02 07:09:36 +00:00
|
|
|
.Li Control
|
1995-08-30 07:28:06 +00:00
|
|
|
key, represented by a "^", pressed in conjunction with an
|
|
|
|
alphabetic key, e.g., ^a) and function keys available on the keyboard
|
|
|
|
(such as
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em "Next Page" ,
|
|
|
|
.Em "Prev Page" ,
|
1995-08-30 07:28:06 +00:00
|
|
|
arrow keys, etc.).
|
1998-02-02 07:09:36 +00:00
|
|
|
.Pp
|
1995-08-30 07:28:06 +00:00
|
|
|
Since not all terminals have function keys,
|
1998-02-02 07:09:36 +00:00
|
|
|
.Nm
|
1995-08-30 07:28:06 +00:00
|
|
|
has the basic cursor movement functions assigned to control keys as
|
|
|
|
well as more intuitive keys on the keyboard when available. For
|
|
|
|
instance, to move the cursor up, the user can use the up arrow key,
|
|
|
|
or
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em ^u .
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It ^a
|
|
|
|
Prompt for the decimal value of a character to insert.
|
|
|
|
.It ^b
|
|
|
|
Move to the bottom of the text.
|
|
|
|
.It ^c
|
|
|
|
Get the prompt for a command.
|
|
|
|
.It ^d
|
|
|
|
Move the cursor down.
|
|
|
|
.It ^e
|
|
|
|
Prompt for the string to search for.
|
|
|
|
.It ^f
|
|
|
|
Undelete the last deleted character.
|
|
|
|
.It ^g
|
|
|
|
Move to the beginning of the line.
|
|
|
|
.It ^h
|
|
|
|
Backspace.
|
|
|
|
.It ^i
|
|
|
|
Tab.
|
|
|
|
.It ^j
|
|
|
|
Insert a newline.
|
|
|
|
.It ^k
|
|
|
|
Delete the character the cursor is sitting on.
|
|
|
|
.It ^l
|
|
|
|
Move the cursor left.
|
|
|
|
.It ^m
|
|
|
|
Insert a newline.
|
|
|
|
.It ^n
|
|
|
|
Move to the next page.
|
|
|
|
.It ^o
|
|
|
|
Move to the end of the line.
|
|
|
|
.It ^p
|
|
|
|
Move to the previous page.
|
|
|
|
.It ^r
|
|
|
|
Move the cursor to the right.
|
|
|
|
.It ^t
|
|
|
|
Move to the top of the text.
|
|
|
|
.It ^u
|
|
|
|
Move the cursor up.
|
|
|
|
.It ^v
|
|
|
|
Undelete the last deleted word.
|
|
|
|
.It ^w
|
|
|
|
Delete the word beginning at the cursor position.
|
|
|
|
.It ^x
|
|
|
|
Search.
|
|
|
|
.It ^y
|
|
|
|
Delete from the cursor position to the end of line.
|
|
|
|
.It ^z
|
|
|
|
Undelete the last deleted line.
|
|
|
|
.It ^[ (ESC)
|
|
|
|
Pop up menu.
|
|
|
|
.El
|
|
|
|
.Ss "EMACS keys mode"
|
1995-08-30 07:28:06 +00:00
|
|
|
Since many shells provide an Emacs mode (for cursor movement and other editing
|
|
|
|
operations), some bindings that may be more useful for people familiar with
|
|
|
|
those bindings have been provided. These are accessible via the
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em settings
|
1995-08-30 07:28:06 +00:00
|
|
|
menu, or via the initialization file (see below). The mappings are as follows:
|
1998-02-02 07:09:36 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It ^a
|
|
|
|
Move to the beginning of the line.
|
|
|
|
.It ^b
|
|
|
|
Back 1 character.
|
|
|
|
.It ^c
|
|
|
|
Command prompt.
|
|
|
|
.It ^d
|
|
|
|
Delete character the cursor is sitting on.
|
|
|
|
.It ^e
|
|
|
|
End of line.
|
|
|
|
.It ^f
|
|
|
|
Forward 1 character.
|
|
|
|
.It ^g
|
|
|
|
Go back 1 page.
|
|
|
|
.It ^h
|
|
|
|
Backspace.
|
|
|
|
.It ^i
|
|
|
|
Tab.
|
|
|
|
.It ^j
|
|
|
|
Undelete last deleted character.
|
|
|
|
.It ^k
|
|
|
|
Delete line.
|
|
|
|
.It ^l
|
|
|
|
Undelete last deleted line.
|
|
|
|
.It ^m
|
|
|
|
Insert a newline.
|
|
|
|
.It ^n
|
|
|
|
Move to the next line.
|
|
|
|
.It ^o
|
|
|
|
Prompt for the decimal value of a character to insert.
|
|
|
|
.It ^p
|
|
|
|
Previous line.
|
|
|
|
.It ^r
|
|
|
|
Restore last deleted word.
|
|
|
|
.It ^t
|
|
|
|
Move to the top of the text.
|
|
|
|
.It ^u
|
|
|
|
Move to the bottom of the text.
|
|
|
|
.It ^v
|
1995-08-30 07:28:06 +00:00
|
|
|
Move to the next page.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It ^w
|
|
|
|
Delete the word beginning at the cursor position.
|
|
|
|
.It ^y
|
|
|
|
Prompt for the string to search for.
|
|
|
|
.It ^z
|
|
|
|
Next word.
|
|
|
|
.It ^[ (ESC)
|
|
|
|
Pop up menu.
|
|
|
|
.El
|
|
|
|
.Ss "Function Keys"
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Next Page
|
|
|
|
Move to the next page.
|
|
|
|
.It Prev Page
|
1995-08-30 07:28:06 +00:00
|
|
|
Move to the previous page.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It Delete Char
|
1995-08-30 07:28:06 +00:00
|
|
|
Delete the character the cursor is on.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It Delete Line
|
1995-08-30 07:28:06 +00:00
|
|
|
Delete from the cursor to the end of line.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It Insert line
|
1995-08-30 07:28:06 +00:00
|
|
|
Insert a newline at the cursor position.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It Arrow keys
|
1995-08-30 07:28:06 +00:00
|
|
|
Move the cursor in the direction indicated.
|
1998-02-02 07:09:36 +00:00
|
|
|
.El
|
|
|
|
.Ss Commands
|
1995-08-30 07:28:06 +00:00
|
|
|
Some operations require more information than a single keystroke can
|
|
|
|
provide. For the most basic operations, there is a menu that can be
|
|
|
|
obtained by pressing the
|
1998-02-02 07:09:36 +00:00
|
|
|
.Tn ESC
|
1995-08-30 07:28:06 +00:00
|
|
|
key. The same operations, and more can be performed by obtaining the
|
|
|
|
command prompt (^c) and typing in one of the commands below.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It ! Ns Ar cmd
|
|
|
|
Execute
|
|
|
|
.Ar cmd
|
|
|
|
in a shell.
|
|
|
|
.It 0-9
|
1995-08-30 07:28:06 +00:00
|
|
|
Move to the line indicated.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It case
|
1995-08-30 07:28:06 +00:00
|
|
|
Make searches case sensitive.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It character
|
1999-09-20 09:15:23 +00:00
|
|
|
Display the ASCII value of the character at the cursor.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It exit
|
1995-08-30 07:28:06 +00:00
|
|
|
Save the edited text, and leave the editor.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It expand
|
1995-08-30 07:28:06 +00:00
|
|
|
Expand tabs to spaces.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It file
|
1995-08-30 07:28:06 +00:00
|
|
|
Print the name of the file.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It help
|
1995-08-30 07:28:06 +00:00
|
|
|
Display help screen.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It line
|
1995-08-30 07:28:06 +00:00
|
|
|
Display the current line number.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It nocase
|
1995-08-30 07:28:06 +00:00
|
|
|
Make searches insensitive to case (the default).
|
1998-02-02 07:09:36 +00:00
|
|
|
.It noexpand
|
1995-08-30 07:28:06 +00:00
|
|
|
Don't expand tab to spaces when the TAB key is pressed.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It quit
|
1995-08-30 07:28:06 +00:00
|
|
|
Leave the editor without saving changes.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It read Ar file
|
|
|
|
Read the named
|
|
|
|
.Ar file .
|
|
|
|
.It write Ar file
|
|
|
|
Write the text to the named
|
|
|
|
.Ar file .
|
|
|
|
.El
|
|
|
|
.Ss "Menu Operations"
|
1995-08-30 07:28:06 +00:00
|
|
|
Pop-up menus can be obtained by pressing the
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em escape
|
1995-08-30 07:28:06 +00:00
|
|
|
key (or
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em ^[
|
1995-08-30 07:28:06 +00:00
|
|
|
if no
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em escape
|
1995-08-30 07:28:06 +00:00
|
|
|
key is present). When in the menu, the escape key can be
|
|
|
|
used to leave the menu without performing any operations. Use the up and
|
|
|
|
down arrow keys, or
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em ^u
|
1995-08-30 07:28:06 +00:00
|
|
|
for moving up and
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em ^d
|
1995-08-30 07:28:06 +00:00
|
|
|
for moving down to move to the desired items in the menu, then press
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em return
|
1995-08-30 07:28:06 +00:00
|
|
|
to perform the indicated task.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Pp
|
1996-12-29 10:54:36 +00:00
|
|
|
To the left of each menu item is a letter, which if the corresponding
|
|
|
|
letter is pressed on the keyboard selects that menu entry.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Pp
|
|
|
|
The main menu in
|
|
|
|
.Nm
|
|
|
|
is as follows:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It leave editor
|
1995-08-30 07:28:06 +00:00
|
|
|
If changes have been made, the user will get a menu prompting whether or
|
|
|
|
not the changes should be saved.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It help
|
|
|
|
Display a help screen, with all of the keyboard operations and commands.
|
|
|
|
.It file operations
|
|
|
|
Pop up a menu for selecting whether to read a file, write to a file, or
|
1995-08-30 07:28:06 +00:00
|
|
|
save the current contents of the editor, as well as send the contents of
|
1998-02-02 07:09:36 +00:00
|
|
|
the editor to a print command (see the section
|
|
|
|
.Sx "Initializing ee from a file" Ns ).
|
|
|
|
.It redraw screen
|
|
|
|
Provide a means to repaint the screen if the screen has been corrupted.
|
|
|
|
.It settings
|
|
|
|
Show the current values of the operating modes, and right margin. By
|
1995-08-30 07:28:06 +00:00
|
|
|
pressing return when the cursor is on a particular item, the value can be
|
1998-02-02 07:09:36 +00:00
|
|
|
changed. To leave this menu, press the
|
|
|
|
.Em escape
|
|
|
|
key. (See
|
|
|
|
.Sx Modes
|
1995-08-30 07:28:06 +00:00
|
|
|
below.)
|
1998-02-02 07:09:36 +00:00
|
|
|
.It search
|
|
|
|
Pop up a menu in which the user may choose to enter a string to search
|
1995-08-30 07:28:06 +00:00
|
|
|
for, or search for a string already entered.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It miscellaneous
|
|
|
|
Pop up a menu that allows the user to format the current paragraph,
|
1995-08-30 07:28:06 +00:00
|
|
|
execute a shell command, or check the spelling of the text in the editor.
|
1998-02-02 07:09:36 +00:00
|
|
|
.El
|
|
|
|
.Ss "Paragraph Formatting"
|
|
|
|
Paragraphs are defined for
|
|
|
|
.Nm
|
|
|
|
by a block of text bounded by:
|
|
|
|
.Bl -bullet -width indent
|
|
|
|
.It
|
1995-08-30 07:28:06 +00:00
|
|
|
Begin or end of file.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It
|
1995-08-30 07:28:06 +00:00
|
|
|
Line with no characters, or only spaces and/or tabs.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It
|
1995-08-30 07:28:06 +00:00
|
|
|
Line starting with a period ('.') or right angle bracket ('>').
|
1998-02-02 07:09:36 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
1995-08-30 07:28:06 +00:00
|
|
|
A paragraph may be formatted two ways: explicitly by choosing the
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em format paragraph
|
|
|
|
menu item, or by setting
|
|
|
|
.Nm
|
|
|
|
to automatically
|
1995-08-30 07:28:06 +00:00
|
|
|
format paragraphs. The automatic mode may be set via a menu, or via the
|
|
|
|
initialization file.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Pp
|
|
|
|
There are three states for text operation in
|
|
|
|
.Nm Ns :
|
|
|
|
free-form, margins,
|
1995-08-30 07:28:06 +00:00
|
|
|
and automatic formatting.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Pp
|
1995-08-30 07:28:06 +00:00
|
|
|
"Free-form" is best used for things like programming. There are no
|
|
|
|
restrictions on the length of lines, and no formatting takes place.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Pp
|
1995-08-30 07:28:06 +00:00
|
|
|
"Margins" allows the user to type in text without having to worry about going
|
1998-02-02 07:09:36 +00:00
|
|
|
beyond the right margin (the right margin may be set in the
|
|
|
|
.Em settings
|
1995-08-30 07:28:06 +00:00
|
|
|
menu, the default is for the margin to be the right edge of the
|
1998-02-02 07:09:36 +00:00
|
|
|
terminal). This is the mode that allows the
|
|
|
|
.Em format paragraph
|
|
|
|
menu item to work.
|
|
|
|
.Pp
|
1995-08-30 07:28:06 +00:00
|
|
|
"Automatic formatting" provides word-processor-like behavior. The user
|
1998-02-02 07:09:36 +00:00
|
|
|
may type in text, while
|
|
|
|
.Nm
|
|
|
|
will make sure the entire paragraph fits
|
1995-08-30 07:28:06 +00:00
|
|
|
within the width of the terminal every time the user inserts a space after
|
|
|
|
typing or deleting text. Margin observation must also be enabled in order for
|
|
|
|
automatic formatting to occur.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Ss Modes
|
|
|
|
Although
|
|
|
|
.Nm
|
|
|
|
is a 'modeless' editor (it is in text insertion mode all the
|
1995-08-30 07:28:06 +00:00
|
|
|
time), there are modes in some of the things it does. These include:
|
1998-02-02 07:09:36 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It tab expansion
|
1995-08-30 07:28:06 +00:00
|
|
|
Tabs may be inserted as a single tab character, or replaced with spaces.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It case sensitivity
|
1995-08-30 07:28:06 +00:00
|
|
|
The search operation can be sensitive to whether characters are upper- or
|
|
|
|
lower-case, or ignore case completely.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It margins observed
|
1995-08-30 07:28:06 +00:00
|
|
|
Lines can either be truncated at the right margin, or extend on forever.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It auto paragraph formatting
|
1995-08-30 07:28:06 +00:00
|
|
|
While typing in text, the editor can try to keep it looking reasonably well
|
|
|
|
within the width of the screen.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It eightbit characters
|
|
|
|
Toggle whether eight bit characters are displayed as their value in angle
|
1995-08-30 07:28:06 +00:00
|
|
|
brackets (e.g. "<220>") or as a character.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It info window
|
1995-08-30 07:28:06 +00:00
|
|
|
A window showing the keyboard operations that can be performed can be
|
|
|
|
displayed or not.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It emacs keys
|
1995-08-30 07:28:06 +00:00
|
|
|
Control keys may be given bindings similar to emacs, or not.
|
1998-02-02 07:09:36 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
1995-08-30 07:28:06 +00:00
|
|
|
You may set these modes via the initialization file (see below), or with a
|
|
|
|
menu (see above).
|
1998-02-02 07:09:36 +00:00
|
|
|
.Ss "Spell Checking"
|
|
|
|
There are two ways to have the spelling in the text checked from
|
|
|
|
.Nm Ns .
|
|
|
|
One is by the traditional
|
|
|
|
.Xr spell 1
|
|
|
|
command, the other is with the
|
|
|
|
optional
|
|
|
|
.Xr ispell 1
|
|
|
|
command.
|
|
|
|
.Pp
|
|
|
|
Using
|
|
|
|
.Nm spell ,
|
|
|
|
the words that are not recognized will be placed at the top
|
|
|
|
of the file. For the
|
|
|
|
.Nm ispell
|
|
|
|
option, the file is written to disk,
|
|
|
|
then
|
|
|
|
.Nm ispell
|
|
|
|
run on the file, and the file read back in once
|
|
|
|
.Nm ispell
|
|
|
|
has completed making changes to the file.
|
|
|
|
.Ss "Printing the contents of the editor"
|
1995-08-30 07:28:06 +00:00
|
|
|
The user may select a menu item which prints the contents of the editor.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Nm
|
1995-08-30 07:28:06 +00:00
|
|
|
pipes the text in the editor to the command specified by the
|
|
|
|
initialization command
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em printcommand
|
1995-08-30 07:28:06 +00:00
|
|
|
(see the section
|
1998-02-02 07:09:36 +00:00
|
|
|
.Sx Initializing ee from a file
|
|
|
|
below). The default is to send the contents to
|
|
|
|
.Xr lp 1 .
|
|
|
|
.Pp
|
1995-08-30 07:28:06 +00:00
|
|
|
Whatever the user assigns to
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em printcommand
|
1995-08-30 07:28:06 +00:00
|
|
|
must take input from
|
|
|
|
standard input. See your system administrator for more details.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Ss "Shell operations"
|
1995-08-30 07:28:06 +00:00
|
|
|
Shell commands can be executed from within
|
1998-02-02 07:09:36 +00:00
|
|
|
.Nm
|
1995-08-30 07:28:06 +00:00
|
|
|
by selecting the
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em shell command
|
1995-08-30 07:28:06 +00:00
|
|
|
item in the
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em miscellaneous
|
1995-08-30 07:28:06 +00:00
|
|
|
menu, or by placing an exclamation mark ("!") before the command to
|
|
|
|
execute at the
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em command:
|
1995-08-30 07:28:06 +00:00
|
|
|
prompt. Additionally, the user may direct the contents of the edit buffer
|
|
|
|
out to a shell operation (via a pipe) by using the left angle bracket
|
|
|
|
(">"), followed by a "!" and the shell command to execute. The output of
|
|
|
|
a shell operation can also be directed into the edit buffer by using a
|
|
|
|
right angle bracket ("<") before the exclamation mark. These can even be
|
|
|
|
used together to send output to a shell operation and read back the
|
|
|
|
results into the editor. So, if the editor contained a list of words
|
|
|
|
to be sorted, they could be sorted by typing the following at the command
|
|
|
|
prompt:
|
1998-02-02 07:09:36 +00:00
|
|
|
.Dl ><!sort
|
1995-08-30 07:28:06 +00:00
|
|
|
This would send the contents of the editor to be piped into the
|
1998-02-02 07:09:36 +00:00
|
|
|
.Xr sort 1
|
1995-08-30 07:28:06 +00:00
|
|
|
utility and the result would be placed into the edit buffer at the current
|
|
|
|
cursor location. The old information would have to be deleted by the user.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Ss "Initializing ee from a file"
|
|
|
|
Since different users have different preferences,
|
|
|
|
.Nm
|
|
|
|
allows some
|
1995-08-30 07:28:06 +00:00
|
|
|
slight configurability. There are three possible locations for an
|
1998-02-02 07:09:36 +00:00
|
|
|
initialization file for
|
|
|
|
.Nm Ns :
|
|
|
|
the file
|
|
|
|
.Pa /usr/share/misc/init.ee ,
|
|
|
|
the file
|
|
|
|
.Pa .init.ee
|
|
|
|
in the user's home directory, or the file
|
|
|
|
.Pa .init.ee
|
1995-08-30 07:28:06 +00:00
|
|
|
in the current directory (if different from the home
|
|
|
|
directory). This allows system administrators to set some preferences for
|
1998-02-02 07:09:36 +00:00
|
|
|
the users on a system-wide basis (for example, the
|
|
|
|
.Em print
|
|
|
|
command),
|
1995-08-30 07:28:06 +00:00
|
|
|
and the user to customize settings for particular directories (like one
|
|
|
|
for correspondence, and a different directory for programming).
|
1998-02-02 07:09:36 +00:00
|
|
|
.Pp
|
|
|
|
The file
|
|
|
|
.Pa /usr/share/misc/init.ee
|
|
|
|
is read first, then
|
|
|
|
.Pa $HOME/.init.ee ,
|
|
|
|
then
|
|
|
|
.Pa .init.ee ,
|
|
|
|
with the settings specified by the
|
1995-08-30 07:28:06 +00:00
|
|
|
most recent file read taking precedence.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Pp
|
1995-08-30 07:28:06 +00:00
|
|
|
The following items may be entered in the initialization file:
|
1998-02-02 07:09:36 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It case
|
|
|
|
Set searches to be case sensitive.
|
|
|
|
.It nocase
|
|
|
|
Set searches to be insensitive to case (default).
|
|
|
|
.It expand
|
|
|
|
Cause
|
|
|
|
.Nm
|
|
|
|
to expand tabs to spaces (default).
|
|
|
|
.It noexpand
|
|
|
|
Cause
|
|
|
|
.Nm
|
|
|
|
to insert tabs as a single character.
|
|
|
|
.It info
|
1995-08-30 07:28:06 +00:00
|
|
|
A small information window is displayed at the top of the terminal
|
|
|
|
(default).
|
1998-02-02 07:09:36 +00:00
|
|
|
.It noinfo
|
|
|
|
Turn off the display of the information window.
|
|
|
|
.It margins
|
|
|
|
Cause
|
|
|
|
.Nm
|
|
|
|
to truncate lines at the right margin when the
|
1995-08-30 07:28:06 +00:00
|
|
|
cursor passes beyond the right margin as set by the user
|
|
|
|
while text is being inserted
|
|
|
|
(default).
|
1998-02-02 07:09:36 +00:00
|
|
|
.It nomargins
|
|
|
|
Allow lines to extend beyond the right margin.
|
|
|
|
.It autoformat
|
|
|
|
Cause
|
|
|
|
.Nm
|
|
|
|
to automatically try to format the current paragraph while
|
1995-08-30 07:28:06 +00:00
|
|
|
text insertion is occurring.
|
1998-02-02 07:09:36 +00:00
|
|
|
.It noautoformat
|
|
|
|
Turn off automatic paragraph formatting (default).
|
|
|
|
.It printcommand
|
|
|
|
Allow the setting of the print command (default: "lp").
|
|
|
|
.It rightmargin
|
1995-08-30 07:28:06 +00:00
|
|
|
The user can select a value for the right margin (the first column on the
|
|
|
|
screen is zero).
|
1998-02-02 07:09:36 +00:00
|
|
|
.It highlight
|
|
|
|
Turn on highlighting of border of information window and menus (default).
|
|
|
|
.It nohighlight
|
|
|
|
Turn off highlighting of border of information window and menus.
|
|
|
|
.It eightbit
|
|
|
|
Turn on display of eight bit characters.
|
|
|
|
.It noeightbit
|
|
|
|
Turn off display of eight bit characters (they are displayed as their decimal
|
1995-08-30 07:28:06 +00:00
|
|
|
value inside angle brackets, e.g., "<220>").
|
1998-02-02 07:09:36 +00:00
|
|
|
.It emacs
|
|
|
|
Turn on emacs key bindings.
|
|
|
|
.It noemacs
|
|
|
|
Turn off emacs key bindings.
|
|
|
|
.El
|
|
|
|
.Ss "Save Editor Configuration"
|
1996-12-29 10:54:36 +00:00
|
|
|
When using this entry from the
|
1998-02-02 07:09:36 +00:00
|
|
|
.Em settings
|
1996-12-29 10:54:36 +00:00
|
|
|
menu, the user may choose to save the current configuration of
|
1998-02-02 07:09:36 +00:00
|
|
|
the editor (see
|
|
|
|
.Sx Initializing ee from a file
|
|
|
|
above) to a file named
|
|
|
|
.Pa .init.ee
|
1996-12-29 10:54:36 +00:00
|
|
|
in the current directory or the user's home directory. If a file named
|
1998-02-02 07:09:36 +00:00
|
|
|
.Pa .init.ee
|
1996-12-29 10:54:36 +00:00
|
|
|
already exists, it will be renamed
|
1998-02-02 07:09:36 +00:00
|
|
|
.Pa .init.ee.old .
|
|
|
|
.Sh CAVEATS
|
1995-08-30 07:28:06 +00:00
|
|
|
THIS MATERIAL IS PROVIDED "AS IS". THERE ARE
|
|
|
|
NO WARRANTIES OF ANY KIND WITH REGARD TO THIS
|
|
|
|
MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE. Neither
|
|
|
|
Hewlett-Packard nor Hugh Mahon shall be liable
|
|
|
|
for errors contained herein, nor for
|
|
|
|
incidental or consequential damages in
|
|
|
|
connection with the furnishing, performance or
|
|
|
|
use of this material. Neither Hewlett-Packard
|
|
|
|
nor Hugh Mahon assumes any responsibility for
|
|
|
|
the use or reliability of this software or
|
|
|
|
documentation. This software and
|
|
|
|
documentation is totally UNSUPPORTED. There
|
|
|
|
is no support contract available. Hewlett-Packard
|
|
|
|
has done NO Quality Assurance on ANY
|
|
|
|
of the program or documentation. You may find
|
|
|
|
the quality of the materials inferior to
|
|
|
|
supported materials.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Pp
|
1995-08-30 07:28:06 +00:00
|
|
|
Always make a copy of files that cannot be easily reproduced before
|
|
|
|
editing. Save files early, and save often.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Ss "International Code Set Support"
|
|
|
|
.Nm Ee
|
1995-08-30 07:28:06 +00:00
|
|
|
supports single-byte character code sets (eight-bit clean).
|
1998-02-02 07:09:36 +00:00
|
|
|
.Sh WARNINGS
|
1995-08-30 07:28:06 +00:00
|
|
|
The automatic paragraph formatting operation
|
|
|
|
may be too slow for slower systems.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /usr/share/misc/init.ee -compact
|
|
|
|
.It Pa /usr/share/misc/init.ee
|
|
|
|
.It Pa $HOME/.init.ee
|
|
|
|
.It Pa .init.ee
|
|
|
|
.Sh AUTHORS
|
1995-08-30 07:28:06 +00:00
|
|
|
The software
|
1998-02-02 07:09:36 +00:00
|
|
|
.Nm
|
|
|
|
was developed by
|
|
|
|
.An Hugh Mahon .
|
|
|
|
.Pp
|
1995-08-30 07:28:06 +00:00
|
|
|
This software and documentation contains
|
|
|
|
proprietary information which is protected by
|
|
|
|
copyright. All rights are reserved.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Pp
|
1996-12-29 10:54:36 +00:00
|
|
|
Copyright (c) 1990, 1991, 1992, 1993, 1995 Hugh Mahon.
|
1998-02-02 07:09:36 +00:00
|
|
|
.Sh "SEE ALSO"
|
|
|
|
.Xr ispell 1 ,
|
|
|
|
.Xr lp 1 ,
|
|
|
|
.Xr spell 1 ,
|
|
|
|
.Xr termcap 5 ,
|
|
|
|
.Xr terminfo 5 ,
|
|
|
|
.Xr environ 7
|