Washington State University HomeWSU
AdmissionsWSU CampusesWSU HomeWSU Search Tools*
edge graphic

Mathematics Department at WSU

The sedt Text Editor

Table of Contents
Using sedt
Moving Around
Inserting Text
Saving Changes and Exiting sedt
Deleting Text
Finding and Replacing Text
Further Information


Using sedt

Sedt is a UNIX editor that functions (nearly) identically to the edt editor found on many VAX systems. It is supported in order to provide a simpler transition for users of VMS to the UNIX systems. Sedt works best if it thinks it's running on a vt100 terminal. Thus, before running sedt, you should execute the following command in your terminal window (see the C shell document for details):

setenv TERM vt100

Depending on what programs you typically use and which terminals you typically log into, you might want to include the above command in your .cshrc file (this file sets a number of defaults for your account when you log in). Please consult the UNIX help file for more information.

To start the sedt editor, simply type

sedt filename

where filename is the name of the file you wish to edit. The screen will be filled with the first lines of the file. If you leave off the filename, then sedt will create a new unnamed file. If the file you specify does not exist, then sedt will create a new file, and assign it the given name.

In describing key sequences for commands, the PF1 key (upper left key on the numeric keypad) will be referred to as GOLD and functions similarly to the control and alt keys; i.e. the description

GOLD PF3

means press the GOLD (PF1) key and then press PF3. Unlike the control and alt keys, you do not have to hold the GOLD key down while pressing the key it modifies. The number keys on the keypad are referred to by KP0, KP1, ..., KP9, KP+, KP-, KP, , KP., and ENTER. The most important key to remember is PF2 which invokes the help displays.

To exit from sedt, press the F8 key found at the top of your keyboard. If there are unsaved changes, you will be asked whether or not you really want to quit. Answer yes or no as appropriate. To save your work, press the F6 key. Sedt indicates whether or not there are unsaved changes in the bottom right of your screen. If you see Mod=<num>, then there are unsaved changes. If there is no number following the text Mod=, then your editing has been saved.

Moving Around

Almost all cursor movement commands make use of the default direction which is indicated in the bottom left of your screen. The default direction is either forward (indicated by Fwd or reverse (Rev). The default direction is set by KP4 (forward) and KP5 (reverse).

Assuming the default direction is set as you want, movement consists of pressing the appropriate key for the amount of distance you wish to move the cursor. For example, KP0 moves by a line, KP1 moves by word, and KP7 moves a page at a time.


Key		Action                                                        

GOLD M		Set mark
GOLD m

GOLD .		Goto mark

KP0		Goto beginning of next line

KP1		Goto next word

KP2		Goto next end of line

KP3		Goto next character

KP4		Set default direction forward

GOLD KP4	Goto the end of the buffer

KP5		Set default direction reverse

GOLD KP5	Goto the beginning of the buffer

KP7		Goto next page

KP8		Goto next paragraph

GOLD F19	Goto matching bracketing character

Inserting Text

To include more typing in a document, simply move the cursor to where you wish to add text and begin typing. You can cut and paste sections of text as follows:

1) Select the text:

Move the cursor to the beginning of the selection and press KP. Then move the cursor to the end of the selection and press KP6

Note: the selected text will be highlighted as you move the cursor
To cancel the selection, press GOLD KP.

2) Paste the text:

Move the cursor to where you would like to insert the selection and press GOLD KP6

Other text insertion commands are summarized below.


Key		Action                                     

^I		Insert a tab character

^M		Insert a carriage return

GOLD G		Include file at current position
GOLD g		(sedt prompts for file name)

GOLD P		Insert a form feed character
GOLD p

F11		Insert an escape character

GOLD KP6	Paste

GOLD KP0	Open line

GOLD KP3	Insert ASCII character

GOLD KP,	Undelete character

GOLD KP-	Undelete word

GOLD PF4	Undelete line


Saving Changes and Exiting sedt

There are several ways to leave sedt. These are summarized below.


Command		Action                                

F10		Save buffer and exit
GOLD F
GOLD f

F8		Quit without saving buffer
GOLD Q
GOLD q

F6		Save contents of buffer

F7		Save context and contents of buffer

Deleting Text

The delete commands allow for deletion by word, character, line, etc. as well as cutting arbitrary stretches of text. See the section on inserting text for instructions on cut-and-paste. The commands are summarized below.


Command		 Action                                

F13		Delete to beginning of word

 U	Delete to beginning of line

GOLD Z		Clear buffer
GOLD z

KP6		Cut selection

KP,		Delete character forward

KP-		Delete word forward

PF4		Delete line forward

GOLD KP2	Delete to end of line

Finding and replacing text

To find a text string press GOLD PF3. Sedt then prompts you for a string to look for. The find command then searches for that text using the default direction. To find the next occurence(s) keep pressing PF3. At any time you may change the default direction using KP4 or KP5.

To search for a new string, you must again enter GOLD PF3.

To replace a string press GOLD KP9. Sedt prompts you first for the string to replace and then for the replacement text. As in the find command, replace respects the default direction. To execute the same replacement command again, just press KP9. To define a new replacement, press GOLD KP9.

Further Information

There are many other features that sedt supports including multiple buffers, rulers, defining commands, etc. For more information, consult sedt's internal help system which is accessed by pressing PF2.



Math Home | People | Computer Services | Department News | Prospective Students | Current Students | Research | College of Sciences

Webmaster
This page last modified on 02/14/01.
Copyright © 2000 Washington State University
Please view the Disclaimer