Cambasic editor, Using the line editor, Warning – Remote Processing CAMBASIC User Manual
Page 20: Entering the edit mode – line editor

Program Editing - 1
CAMBASIC EDITOR
Using the Line Editor
When using a CRT terminal to write program s, the resource s of the PC are not available. C AMBASIC has a line editor
that may b e used with a ny “ smar t” or “du mb” termin al. Y ou can also use these com mands w hen using you r PC with
terminal softwa re other than P C Sma rtLIN K. T here ar e 12 editing comm ands.
Your progr am can be edited a line a t a time. Since you ar e talking thro ugh a ser ial port to you r PC or ter minal, full
screen editing like that on your PC is not possible.
To inser t a new line, you just type the line and the C AM BASIC editor w ill place it in the pro per num eric sequ ence 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 comm ands are prefixed with n. T his is an optional num eric par ameter . F or exam ple, 5D m eans delete the next 5
character s.
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 character s.
nM
Delete n characters and enter Insert Mode.
nR
Replace n character s.
n< S P C >
Space n character s.
< E S C >
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 w ill simply stop.
WARNING:
When using the screen editor in PC Sm artLINK, do not use the EDIT comm and. U se 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 _