Specifications

Program Editing - 2
CURSOR MOVEMENT
The display will appear as above. Press <SPC> twice. You will notice that the first two characters appear as the cursor
moves to the right. Now press <4> and then <SPC>. The cursor now moves 4 spaces to the right.
Press <SPC> twice. The characters seem to be erased but are not. You can confirm this by pressing <SPC> twice
again.
You cannot move the cursor with the <SPC> beyond the end of the line or with the <SPC> to the left of the text.
Editing the line number is not allowed.
Now press <ENTER>. The line is reprinted and then saved. In this case no editing took place. This line will be used
throughout this section.
Now type a period “ . ”.
You will notice that line 10 once again appears for editing. This is the quick form of editing. The “.” command causes the
“current” line to be edited.
LINE EDITING COMMANDS
A Abort All Changes And Reenter The Edit Mode
If you change your mind in the middle of an edit, you can use the “A” command to cancel all the
editing work done on the line so far and redisplay the command for further editing.
If you are in the Insert Mode when the decision to abandon the edit occurs, you must exit the Insert
Mode. To get out of the Insert Mode, press the <ESC> key then press <A>.
D Delete
To delete a character move the cursor to the character to be deleted. Note that the character is not
printed at the cursor. Now press the <D> on a terminal (do not press <ENTER> yet). If several
characters are to be deleted, press the number first and then the <D> key.
The cursor will move leaving blanks where the deleted characters are. Now press <ENTER>. The
line is reprinted with the blanks indicating the edit. The blanks are not stored in the text. You can
confirm this by executing:
>LIST [line]
CAMBASIC will not let you delete more characters than exist on a line. There is no way to undo a
delete except by performing an Abort <A>. To view the changes to the line, type <L>. The
entire line will be displayed.
ESC Escape From Insert And Replace Modes
This command turns off the Insert Mode. If you wish to use other editing commands while in Insert
Mode, you must press <ESC>.
H Hack Remainder Of The Line And Enter Insert
The Hack command deletes from the cursor position to the end of the line and enters the Insert Mode.
EDIT 10
10 PRINT "This is";:PRINT" a simple edit"
10 _