ED is a full-screen text editor suitable for preparing source code or other text files. You can use ED to create a new
file or alter an existing one. Text is displayed on screen and can be scrolled vertically or horizontally using the cursor
keys. To add new text, you simply type it in. To delete existing text, you use the delete keys.
The FROM argument specifies the file you want to edit. If the file exists, it is loaded into
ED and the first few lines are displayed on screen ready for editing. If the file does not exist, ED will
create the file and present a blank screen ready for text to be entered.
You can adjust the size of the text buffer that ED uses with the SIZE argument. The
initial size of the text buffer is based on the size of the file you edit with a minimum of 40,000 bytes.
The optional WITH argument is the name of an ED command file created to set up particular
function key assignments, or even to perform automated editing operations on an existing file when you call it. The command
file can contain any sequence of ED extended mode commands. Each command must be on a separate line. A complete list
of ED extended mode commands is given below.
The WINDOW, WIDTH, and HEIGHT
arguments are for defining your terminal type if you are using a non-Amiga console, or if you simply want to adjust the ED window
size. WINDOW describes the console type, such as "RAW:0/0/640/256/<title>", "AUX:", or even
"*". WIDTH and HEIGHT give the number of characters to display
horizontally and vertically.
The TABS arguments specifies the tab stop interval. This is the number of spaces to the right
of the current position that the cursor will move when the tab key is pressed. The default value is 3.
You can work on files in ED with the following command modes:
IMMEDIATE MODE COMMAND QUICK REFERENCE
- Immediate - Commands are executed as soon as typed. ED opens in immediate mode.
- Extended - Commands are not executed until you press Return or Esc.
In immediate mode, ED executes commands right away. You give these commands by pressing a single key, holding down the
control (Ctrl) key and pressing one of the letter keys, or by using the mouse. All immediate commands have corresponding
extended versions. The list below gives all the ED immediate mode commands:
||Scroll text down.
||Move to top or bottom of screen.
||Repeat the last extended mode command (see list below).
||Delete character left of cursor.
||Move cursor right to next tab position.
||Delete word or spaces.
||Cursor to end of previous word.
||Cursor to start of next word.
||Scroll text up.
||Delete from cursor to end of line.
||Escape (enter extended command mode).
||Cursor to end or start of line.
EXTENDED MODE COMMAND QUICK REFERENCE
This is a full list of the ED extended mode commands. To give an extended mode command, you first press the escape (ESC) key.
A special command line will appear at the bottom of the screen indicating that ED is ready to accept your command. Next type
in a command from the list below and press return. ED will perform the command.
For instance to save a file you have created, press the escape key, then type SA and return. ED will save the file using the
filename you specified when you started ED. To exit ED without saving anything, press the escape key, then type Q and return.
In the list below /s/ indicates a string, /s/t/ indicates two exchange strings and n indicates a number.
||Insert a line with the text s after the current line.
||Move to the bottom of the text.
||Mark a block end at cursor.
||Backward find, searches for the string s in the reverse direction
||Mark a block start at cursor.
||Move cursor to the end of the line.
||Move cursor one position left.
||Move cursor one position right.
||Move the cursor to the start of the line.
||Delete the current line.
||Delete block. You must first use BS and BE to mark the block.
||Delete character at cursor.
||Exchange all occurences of the string s with the string t.
||Exchange the string s with the string t but query first.
||Extend right margin.
||Find string s.
||Insert a line with the string s before the current line.
||Insert a copy of marked block. You must first use BS and BE to mark the block.
||Insert the file s at the current position.
||Join current line with the next line.
||Distinguish between upper case and lower case in searches.
||Move to line number n.
||Move to the start of the next line.
||Move to the start of the previous line.
||Quit ED without saving.
||Repeat command until error.
||Split line at cursor.
||Save text to the file s.
||Show current marked block on screen.
||Set left margin to nth column.
||Set right margin to nth column.
||Set tab distance to n.
||Move to the top of text.
||Undo changes on the current line.
||Do not distinguish between upper case and lower case in searches.
||Write marked block to file /s/. You must first use BS an BE to mark the block.
||Exit ED saving text to the file specified when ED was started.
3.OS4:> ED mytext
starts up ED and loads the text file mytext for editing.
3.OS4:> ED mytext SIZE 50000 TABS 8
starts up ED and loads the file mytext for editing. The text buffer used by ED will be set to 50,000 bytes and the tabs will be
set to 8 characters.
See Also: EDIT, MeMacs, Notepad
Return to Commands Selection
Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences
and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held
accountable for any issues that may result from using it.