Specifications

Program Editing - 1
CAMBASIC EDITOR
Using the Line Editor
When using a CRT terminal to write programs, the resources of the PC are not available. CAMBASIC has a line editor that
may be used with any “smart” or “dumb” terminal. You can also use these commands when using your PC with terminal
software other than PC SmartLINK. There are 12 editing commands.
Your program can be edited a line at a time. Since you are talking through a serial port to your PC or terminal, full screen
editing like that on your PC is not possible.
To insert a new line, you just type the line and the CAMBASIC editor will place it in the proper numeric sequence with the
rest of the program. If there was previously a line with the same line number, the previous line is deleted before the new
line is added. To delete a whole line, type the line number and then <ENTER>.
Some commands are prefixed with n. This is an optional numeric parameter. For example, 5D means delete the next 5
characters.
A Abort all changes and reenter Edit Mode on same line.
I Insert Mode active.
L Lists the entire line
X Extend the line by moving cursor to end and enter Insert Mode.
H Hack off the remainder of the line and enter Insert Mode.
nD Delete n characters.
nM Delete n characters and enter Insert Mode.
nR Replace n characters.
n<SPC> Space n characters.
<ESC> Escapes the Insert Mode.
<ENTER> Save the edited line.
<BKsp> Nondestructive cursor backspacing.
All commands may be used within a single line. Use of an illegal command causes the bell on the terminal to sound. If an
attempt is made to space beyond the actual line length, the cursor will simply stop.
WARNING: When using the screen editor in PC SmartLINK, do not use the EDIT command. Use LIST to put the
lines you want to edit on the screen.
ENTERING THE EDIT MODE – LINE EDITOR
To start this tutorial on editing, power–up your system and enter the following line.
10 PRINT "This is" ; : PRINT" a sample edit"
Now type:
EDIT 10
10 PRINT "This is" ; : PRINT" a sample edit"
10 _
Executing the EDIT statement will cause the target line to be displayed. Below this line the line number will be displayed
again and the cursor will be positioned at the start of the line. In the following text, the notation <ENTER> means press
the key enclosed by the < >. The underline shows the cursor position.