
Program Editing - 1
CAMBASIC EDITOR
Using the Line Editor
When using a CRT terminal to write program s, the resources of the PC are not available. CAMBASIC has a line editor
that may be used with any “smar t” or “dumb” termin al. Y ou can also use these commands w hen using your PC with
terminal software other than P C SmartLIN K. T here are 12 editing comm ands.
Your progr am can be edited a line at a time. Since you ar e talking thro ugh 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 pro per num eric 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 num eric par ameter . F or exam ple, 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 character s.
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 comm and. 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 _
Commenti su questo manuale