Entering
and
Editing
3-2
In the Command Mode, the RUBOUT key deletes the last entered character each
time you press it, and backspaces the cursor on a CRT. On a teletype, or with
RMX/SO
BASIC-SO,
RUBOUT echoes the last-entered character.
If
you then press
CR, the program statement
is
entered without the rubbed-out characters.
If
you
enter new characters and then press CR, the new characters appear in the line.
Suppose you enter 52 instead of 55.To erase the
2,
press RUBOUT:
30
A=8*52
30
A=8*5
If
you press RUBOUT again, the 5
is
deleted:
30
A=8*
To change
52
to
37,
press RUBOUT twice, then
3,
7:
30
A=8*52
30
A=8*
30
A=8*37
When using the Edit Mode, RUBOUT works somewhat differently. Refer to the
Editing Program Text Section for details.
Control-R displays the line as corrected, still waiting for more input:
30
A--=8xx*522537 (Control-R)
A = 8*37
To cancel a line, simply press Control-X.
Editing Program Text
Intel ISIS-II
BASIC-SO
has an Editing Mode used to change individual characters,
or entire lines. The Editing Mode has its own set
of
subcommands and syntax. Table
3-1
briefly describes each
of
the subcommands.
If
an illegal character
is
entered, the
terminal beeps and the character
is
ignored.
Table 3-1. BASIC-80Editing Subcommands
Function Syntax
To delete text: [integer] 0
To insert text: I character [character. .. ]
To delete all characters to the right of the cursor H character [character ... ]
and insert text:
To insert characters at the end of the line: X character [character ... ]
To search for a character: [integer] S character
To delete all characters until specified character: [integer] K character
To change next n characters to y characters: [integer] C character [character ... ]
To restore original line and leave Edit Mode: Q
To restore original line and restart Edit Mode: A
To print balance of line and restart Edit Mode: L
To leave Edit Mode and keep changes: E
To leave Edit Mode, keep changes, and print the Carriage return
edited line:
To delete unwanted characters: Rubout
To place one logical statement line on two
or
more Line Feed
physical lines:
To leave next n characters unchanged: [integ.er] space
BASIC-SO