User`s guide
EDIT
TECO is not distributed or supported by Digital; many of the options described here
do not apply to the TECO editor.
Default Editor
KED is the default editor for unmapped monitors, and KEX is the default editor for
mapped monitors. However, you can use the SET EDIT command to set a default
editor (EDIT, KED, KEX) so that when you issue the EDIT command, you invoke
that editor (see SET EDIT).
File Backup
When you edit a preexisting file, the editor saves the original file by changing its
file type to BAK (for backup), when you exit from the editor.
Protected Files
To perform any edit operations that modify a protected file, you must UNPROTECT
that file. (See the UNPROTECT command, the COPY/NOPROTECTION command,
or the RENAME/NOPROTECTION command.)
Some Major Features of KED/KEX
• Screen editing with all the standard features of a screen editor. This means you
can see at one time as many lines in a file as will fit on a screen, adjust the line
width of your text, quickly search for information through an entire file, and so
on.
• An initialization-file capability, allowing you to preset some functions of the
editor.
• A journal-file option, allowing you to recover your work in the event of an
unexpected power-down.
• An ability to create macros allowing you to make your own editor commands.
For a full description of KED/KEX see the PDP–11 Keypad Editor User’s Guide.
Running KEX as a System Job
Using the SRUN command, you can run KEX as a system job on a mapped monitor.
Doing so allows you to keep a file open for editing while doing other work at your
terminal. The system job feature also allows you to edit more than one file at a time
(depending on how much available memory your computer has). See the system job
feature chapter in the Introduction to RT–11.
Options
/ALLOCATE:size
Used with /OUTPUT or after the file specification, reserves space on the device for
the output file. This option is position dependent; it qualifies a file-specification.
The argument size represents the number of blocks of space to allocate. The
meaningful range for this value is from -1 to 65527. A value of -1 is a special
RT–11 Command Descriptions 107










