|
NAMEteco —
The grand old text editor
SYNOPSIStecoc make
[-noini ] [-nomemory ]
file
tecoc teco
[-inspect ] [-nocreate ]
[-noini ] [-nomemory ]
[-nopage ] [-norename ]
[+nnn] file
tecoc mung
[-noini ] file
DESCRIPTIONThis description section is sufficiently long that it has been split into a number of subsections.Command namesteco is actually invoked by the command
tecoc. It takes a first argument of
make , teco , or
mung to control its operating mode. In the
FreeBSD version, the base name of the invoking command
is tested to provide this first argument. For ease of use, it is recommended
that aliases are set up. The recommended (and usual) mappings are:
These mappings are assumed in the Options and Command invocations sections below. OptionsOptions may be abbreviated; for each option, the part shown in brackets can be omitted. The following options are available for theteco command:
Command invocationsThere are a number of different ways of startingteco .
Key BindingsThe keys mentioned in the teco.doc file are somewhat confusing. This should help:
Note that the assignments for Initialisation fileteco mungs (executes as
teco commands) the file
TECO.INI (yes, in uppercase) in the current directory
before processing the command line. Initialisation can be done instead by
defining an environment variable named TEC_INIT . The
value is either the list of teco commands to execute,
or a $ followed by the pathname of the initialisation
file. This allows a single, centrally located initialisation file. Remember
that the $ must be escaped with a backslash character.
The initialisation file can be used to make initial settings. It can return a value, but the value setting is somewhat obscure. For example, the following will both cause successful searches to
auto-display in all
The following will each cause the file ~/.tecrc to be used as the initialisation file.
Filename memoryteco tries to remember the last file that it edited, so
that after a file has been edited once, it can be re-edited without the file
name having to be repeated on the command line. teco
implements this by writing and reading a file that contains the name of the
last file edited. By default, the file name is
tecoN.tmp in the current directory, where
N is the process ID of the parent process to
teco .
To change the location of the memory file, define the environment
variable The following examples will cause the name of the last file edited to be stored in the file teco.mem in the home directory.
Library directoryThe environment variableTEC_LIBRARY can be set to be a
directory path (including the final /); the path must
be preceded by a $ character. This allows the
EI command to fetch teco
commands from this directory if the file is not found in the current
directory. Remember that the $ must be escaped with a
backslash character.
This will cause the directory
/usr/local/lib to be searched for
Implemented flagsThere are a number of flags that can be set insideteco ,
using the ED and ET mode
control commands. To add functionality, teco is also
sensitive to bits in an extra mode control flag, EZ .
Bits in the EZ mode control command are used in
different ways by different operating systems; only those relevant to
FreeBSD are described here.
ENVIRONMENTThe following environment variables are used byteco :
FILES
EXIT STATUSTheteco utility exits 0 on success,
and >0 if an error occurs.
SEE ALSOA variety of documentation files may be installed in /usr/local/share/doc/teco. Apart from the ones mentioned in the FILES section, they are of limited use, because they refer to slightly different versions ofteco .
There are also many online resources. AUTHORSPete Siemsen ⟨siemsen@usc.edu⟩.Tom Almy ⟨tomalmy@aracnet.com⟩. FreeBSD port and manual page maintained by Bob Eager ⟨bob@eager.cx⟩. BUGSThere is no video mode.
Visit the GSP FreeBSD Man Page Interface. |