home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.update.uu.se
/
ftp.update.uu.se.2014.03.zip
/
ftp.update.uu.se
/
pub
/
rainbow
/
msdos
/
misc
/
sedtfile.lzh
/
SEDTINTR.EDT
< prev
next >
Wrap
Text File
|
1986-01-04
|
27KB
|
547 lines
SEDT primer, Version 2.1
Introduction
Introduction
SEDT is a text editor that supports the Digital Rainbow
microcomputer under CP/M and MS/DOS, IBM PC, IBM PC/XT, IBM
PS/AT, compatibles and VAX/VMS. For ease of learning SEDT offers
keyboard layouts similar to EDT and WPS+.
SEDT offers many features not normally found on
microcomputer editors. Some of these are: unlimited file size,
unlimited paste buffer size, the ability to edit up to four files
at the same time with two windows in the screen, fully
programmable keyboard layout and horizontal scrolling. Also, by
offering totally compatible editing environments on both
microcomputers and superminicomputers SEDT offers a single editor
for individuals that often move between these environments.
This guide has been written for Digital keyboards. If
you have an IBM PC or IBM AT keyboard refer to appendix A for a
translation from Digital to IBM keys.
SEDT primer, Version 2.1
Entering and leaving SEDT
Entering and leaving SEDT
Activate the SEDT program by typing
SEDT file-specification
specifying the file you want to edit. For instance, to create a
file called FROGS.TXT on the disk in drive B, you would type
SEDT B:FROGS.TXT
At this point the screen goes blank and is completely
redrawn. Two lines at the top of the screen and two lines at the
bottom are reserved for information about the state of the
editing job and for communication with the program; the file you
are editing will be displayed in the twenty lines in the middle
of the screen, which constitute a "window" into the file. To
start off with, the first line of your file will be positioned in
the middle of the screen, with the cursor at the left edge. (If
you are creating a completely new file, the window will be
empty.) The name of the file you are editing will appear in the
upper left-hand corner of the screen, and the line just below it
indicates the positions of the left and right margins that SEDT
will use and the locations of the preassigned tab stops. At the
bottom of the screen, you will first see the message "Could not
open input file" (if you are creating a new file), then (in any
case) the copyright notice.
As you now start typing, every character you type will be
displayed on the screen immediately. As you type, the text will
scroll upwards so that the cursor always remains on the middle
line of the screen; the cursor stays on that line throughout all
of SEDT's text-editing operations, with the surrounding text
scrolling in whichever direction is necessary to ensure this. If
you move beyond the right margin of the screen SEDT will repaint
the contents of the window shifted half a screen to the left.
SEDT will alwys ensure that the character that the cursor is
positioned on is visible the screen by shifting the text to
either side.
A help facility is provided for guidance while you are
actually editing your program. To activate it, press <HELP>
(near the top of the Digital keyboard, in the fourth group of
gray keys). (The <PF2> key on the numeric keypad has the same
effect, as in EDT.) The text you are editing will disappear from
view temporarily, but you can restore it by pressing the space
bar.
SEDT primer, Version 2.1
Entering and leaving SEDT
When you have finished editing your file, you can leave
SEDT and save your work by first pressing <GOLD> (that is, the
<PF1> key at the top of the numeric keypad -- it is colored gold
on some versions of the Digital keyboard) and then typing the
letter <F>. To leave SEDT without saving your work (which you
might want to do if the results of your editing are
unsatisfactory), press <GOLD>, then <Q>. You can also save your
work without leaving SEDT; this is done by pressing <GOLD>, then
<S>, and responding to the prompt "Save onto File:" by pressing
<RETURN>.
SEDT primer, Version 2.1
Moving the cursor
Moving the cursor
There are several SEDT commands that move the cursor
backwards or forwards on its line, or shift the text being edited
upwards or downwards in the window to bring a different line
under the cursor. The most commonly used cursor-movement
commands are as follows:
Single position in any direction
.
Each of the gray arrow keys to the right of the
<RETURN> key moves the cursor in the direction indicated
by the arrow if possible. Holding the key down should
cause the movement to be repeated until the key is
released. Pressing the up arrow when the cursor is on
the first line of the file, or the down arrow when it is
on the last line, produces a beep and an error message
("Beginning of buffer reached" or "End of buffer
reached"); pressing the left arrow when the cursor is at
the left end of a line causes it to retreat to the right
end of the preceding line, and pressing the right arrow
when the cursor is at the right end of a line causes it
to advance to the left end of the following line.
Half-screen up or down
.
The <PREV SCREEN> and <NEXT SCREEN> keys, which
are also in the group of gray keys to the right of the
<RETURN> key, cause the cursor to move ten lines upwards
or downwards in the file, respectively.
Top of file, bottom of file
.
At any point you can move to the first line of
your file by pressing <GOLD>, then the <5> key on the
numeric keypad. Similarly, <GOLD> followed by numeric
keypad <4> moves you to the last line of the file.
SEDT primer, Version 2.1
Moving the cursor
Search for specific string
.
You can instruct SEDT to search through your
file, starting from the current cursor position, until it
finds a particular combination of characters. Press
<GOLD>, then the <FIND> key (in the group of gray keys to
the right of the <RETURN> key); SEDT will ask you to
type in the string of characters that you want it to
search for, ending with <RETURN>. It will then position
the cursor over the next occurrence of that string (or
give you an error message indicating that it could find
no such occurrence). To repeat the search without having
to specify the search string again, press <FIND> (without
<GOLD>). (Note to EDT users: You can use <PF3> instead
of <FIND> in these operations, just as in EDT.). The
search algorith used is case insensitive.
Fast scrolling
.
Pressing <GOLD>, then the left or right arrow,
scrolls the text continuously downwards or upwards until
you press any key to halt it. Since the key you press
may itself have some effect on the screen or on the text
being edited, the best idea is probably to halt it by
pressing <ENTER> (in the lower right corner of the
numeric keypad), which has no SEDT function.
Undo previous command
.
If you make a mistake and move the cursor
incorrectly, <GOLD> <U> undoes the most recent
cursor-movement operation, taking the cursor back to
where it was before.
SEDT primer, Version 2.1
Insertion and deletion
Insertion and deletion
For the most part, you add text to a file just by moving
the cursor to the point at which you want to make the insertion
and typing it in. There is one special insertion command in
SEDT:
Open line
.
This command "opens up" a line at the present
cursor position. If you press <GOLD> and then the <0>
key on the numeric keypad when the cursor is at the end
of a line, a blank line is created, but the cursor is not
moved onto it; if you perform the same operation when
the cursor is in the middle of a text line, the effect is
that of pressing <RETURN> (namely, the line is broken
into two lines at the position of the cursor) except that
the cursor does not advance to the new line.
There are several ways of deleting text using SEDT. The
first three are for deleting text to the left of the cursor, the
next four, text from the cursor position rightwards; the eighth
operation ("Deleting a selected passage") requires you to mark
both ends of the proposed deletion, and the last three are for
recovering text that has been deleted.
Delete previous character
.
The key marked with a boxed X in the upper
right-hand corner of the typewriter part of the keyboard
directs SEDT to remove the character immediately to the
left of the cursor.
Delete back to beginning of word
.
<LF> (the third key from the left in the third
group of gray keys at the top of the keyboard, also
marked <F13>) removes the word or partial word
immediately to the left of the cursor.
Delete back to beginning of line
.
Holding down the <CTRL> key and pressing <U>
removes everything between the cursor and the left end of
the line it is on. If the cursor is already at the left
end of a line, this operation deletes the previous line.
SEDT primer, Version 2.1
Insertion and deletion
Delete current character
.
The <,> key on the numeric keypad removes the
character that the cursor is sitting on. The "Delete
previous character" operation is more useful when one is
typing in a lot of text for the first time; "Delete
current character" is easier to use when one is revising
a file and fixing misspellings.
Delete to beginning of next word
.
The <-> key on the numeric keypad removes a word,
or part of a word, starting from the character that the
cursor is sitting on and moving right to the beginning of
the next word (including any blanks).
Delete to end of line
.
Pressing <GOLD> and then <2> on the numeric
keypad deletes everything from the character that the
cursor is sitting on to the end of the line.
Delete to beginning of next line
.
<PF4> deletes everything from the character that
the cursor is sitting on to the end of the line,
including any line break that may be there (so it runs
the next line onto the current one).
Delete a selected passage
.
If you want to knock out a large, irregular
region of text in one blow, you can begin by positioning
the cursor at the beginning of the part to be deleted and
then pressing <SELECT> (in the group of gray keys to the
right of the <RETURN> key). Next, move the cursor to the
end of the region you want to delete; the region over
which the cursor is moved will be highlighted in reverse
video, to indicate the extent of the cut. Position the
cursor immediately to the right of the end of the text to
be cut out (that is, place it on top of the first
character you want to keep). Then press <REMOVE> (in the
same group of keys). All the parts between the cursor
position marked by <SELECT> and the new cursor position,
including the former but not the latter, will be removed.
(Note to EDT users: <.> and <6> on the numeric keypad
can be used in this operation instead of <SELECT> and
<REMOVE>, so that the entire operation works exactly as
in EDT.) If you make a mistake in fixing the "select
point," you can retrospectively cancel the operation by
pressing <GOLD> <SELECT> (or, as in EDT, <GOLD> <.>).
SEDT primer, Version 2.1
Insertion and deletion
Undelete a character
.
Pressing <GOLD> and then the <,> key on the
numeric keypad will restore the character most recently
deleted by a "Delete previous character" or "Delete
current character"operation. (The character will be
placed at the current cursor position, which may be
different from the position it originally occupied.)
Undelete a word
.
Pressing <GOLD> and then the <-> key on the
numeric keypad will restore the word or partial word most
recently deleted with a "Delete back to beginning of
word" or "Delete to beginning of next word" operation,
placing it at the current cursor position.
Undelete a line
.
<GOLD> <PF4> will restore the line or partial
line most recently deleted with a "Delete back to
beginning of line," "Delete to end of line," or "Delete
to beginning of next line" operation, placing it at the
current cursor position.
Undelete a selected passage
.
The <INSERT HERE> key, in the group of gray keys
to the right of the <RETURN> key, will restore the swatch
of text most recently deleted with a "Delete a selected
passage" operation, placing it at the current cursor
position. (Note to EDT users: You can also use the EDT
PASTE command -- <GOLD> <6> -- to achieve the same
effect.)
SEDT primer, Version 2.1
Moving and copying text
Moving and copying text
Besides the main buffer that holds the text you are
working on, the SEDT editor is equipped with several side buffers
that can be made to hold bits and pieces of text that you want to
move from one place to another. There is a character buffer that
holds one character, a word buffer that holds one word, a line
buffer that holds one line, and a so-called "paste" buffer that
can hold as much text as the main buffer can.
Whenever you delete a character, word, line, or chunk of
text, it is stored in the relevant buffer -- out of sight, as far
as the viewer of the screen is concerned, but not out of mind, as
far as SEDT is concerned. This is why you can always undo a
change, using <GOLD> <,>, <GOLD> <->, <GOLD> <PF4>, or <INSERT
HERE>. Now, the buffers will continue to hold their text even if
the cursor is moved around on the screen! This means that you
can pick up a bit of text in one of the buffers, move the cursor,
and then reinsert that bit of text in a different position.
Most often this facility is used to move a big chunk of
text. The procedure, from beginning to end, is this:
1. Position the cursor at the beginning of the chunk you
want to move.
2. Press <SELECT>.
3. Move the cursor to the end of the chunk you want to
move, and just past it, so that it is sitting on the
first character that you don't want moved.
4. Press <REMOVE>. This removes the chunk from the screen
and loads it into the (invisible) paste buffer.
5. Move the cursor to the position at which you want the
chunk to be inserted; more precisely, the cursor should
be sitting on the character that you want to follow the
chunk once the operation is complete.
6. Press <INSERT HERE>. This will reinsert the contents
of the paste buffer on the screen.
You can follow nearly the same procedure if you want to
copy one chunk of your file to a different position without
deleting it from its original position; the only change is in
step 4, where you should press <GOLD> <REMOVE> instead of just
<REMOVE>. The effect of <GOLD> <REMOVE> is to copy the selected
text into the paste buffer.
SEDT primer, Version 2.1
Command repetition
Command repetition
Many of the cursor movement and text editing commands
described above can be repeated automatically. To repeat an
operation a fixed number of times, start by pressing <GOLD>, then
type in the number of times you want the operation performed (as
an ordinary decimal number, using the typewriter keyboard and not
the numeric keypad), and finally press the key or keys that you
would use to perform the operation once.
The same facility can be used for drawing a row of
hyphens, underscores, etc. Press <GOLD>, type in the number of
characters you want, then press the typewriter key for that
character; it will be repeated the number of times you specify.
This will not work, of course, if the character to be repeated is
a numeral, since SEDT will suppose the numeral to be part of the
repetition factor.
SEDT primer, Version 2.1
Text formatting
Text formatting
Although SEDT is really just a text editor and not a
full-scale word processing system, it does have some facilities
for formatting text. Some of these facilities are brought into
play by the ruler, which is the collection of margin and tab
indicators that appear on the second line of the display.
The ruler can be adjusted and controlled by the following
operations:
Switch into ruler definition mode
.
<GOLD> <R> moves the cursor into the ruler area,
so that any of the following changes can be made on the
ruler. To return the cursor to the text window, press
<RETURN>.
Move the cursor along the ruler
.
The left and right arrow keys, in the group of
gray keys to the right of the <RETURN> key, can be used
to shift the cursor in either direction along the ruler.
Set or remove a tab stop
.
Pressing <T> while the cursor is in the ruler
area causes a tab stop to be inserted at the cursor
position; pressing the <-> on the ordinary typewriter
keyboard removes a tab stop that currently exists at the
cursor position.
Adjust the margins
.
Pressing <L> key moves the left margin to the
cursor position; <R> similarly shifts the right margin.
Adjust the word-wrap margin
.
Pressing <W> moves the word-wrap margin to the
cursor position. The difference between the left margin
and the word-wrap margin is that when a line is
explicitly terminated with a <RETURN>, the cursor is
placed at the left margin on the next line, whereas when
a line is terminated automatically by the wrap facility,
the cursor is placed at the word-wrap margin on the next
line. (This is to facilitate the typing of indented
lists.)
SEDT primer, Version 2.1
Text formatting
Activate right justification
.
Pressing <J> shifts the right margin to the
current cursor position and activates automatic
justification. (In other words, J is like R except that
when you type past the position it indicates, it not only
moves the last word typed onto a new line, but inserts
blanks in the old line in order to pad it out to the
specified margin.)
Adjust the temporary-indentation level
.
Pressing <I> sets the temporary-indentation level
at the cursor position.
In addition to the ruler operations, SEDT offers two
other important text-formatting facilities:
Center a line
.
<GOLD> <C> centers the line of text on which the
cursor is placed between the left and right margins.
Fill a paragraph
.
If you press <GOLD> and then the <8> key on the
numeric keypad, SEDT starts at the current cursor
position and works forwards to the end of the current
paragraph, readjusting the lines so that each contains as
many words as will fit between the left and right
margins. The right margin is justified if and only if it
is marked in the ruler with a J rather than an R.
SEDT primer, Version 2.1
Appendix A
Appendix A
IBM to Digital keyboard translation
Digital key PC key
F1 ALT 1
F2 ALT 2
F3,Setup ALT 3
F4 ALT 4
F5,Break ALT 5
F6,Interrupt ALT 6
F7,Resume ALT 7
F8,Cancel ALT 7
F9,Main Screen ALT 8
F10,Exit ALT 9
F11,ESC ALT Q
F12,BS ALT W
F13,LF ALT E
F14,Additional Options ALT R
F15,Help ALT T, Shift keypad 5
F16,Do ALT Y, Shift keypad +
F17 ALT U
F18 ALT I
F19 ALT O
F20 ALT P
Find F1, Shift keypad 7
Insert Here F3, Shift keypad 0
Remove F4, Shift keypad .
Select F2, Shift keypad 1
Prev Screen F5, Shift keypad 9
Next Screen F6, Shift keypad 3
Up Arrow F7, Shift keypad 8
Left Arrow F9, Shift keypad 4
Down Arrow F8, Shift keypad 2
Right Arrow F10, Shift keypad 6
Keypad 0 Keypad 0
Keypad 1 Keypad 1
Keypad 2 Keypad 2
Keypad 3 Keypad 3
Keypad 4 Keypad 4
Keypad 5 Keypad 5
Keypad 6 Keypad 6
Keypad 7 Keypad 7
Keypad 8 Keypad 8
Keypad 9 Keypad 9
Keypad , Shift keypad -
Keypad - Keypad -
Keypad . Keypad .
Keypad PF1 PC: Num Lock; AT: Esc
Keypad PF2 PC: Shift Num Lock; AT: Num Lock
Keypad PF3 Scroll Lock
Keypad PF4 Shift Scroll Lock
Keypad Enter Keypad +