Owner's manual
Publication 1746-RM001A-US-P
BASIC Commands 4-7
Control-S
Purpose
Use the [CTRL-S] command to interrupt the scrolling of a BASIC program during
the execution of a LIST command.
[CTRL-S] stops output from the transmitting
port if you are running a program. In this case XOFF (
[CTRL-S]) operates as
follows:
• XOFF only operates on PRINT statements.
• When received during a PRINT, data output is suspended immediately but
program execution continues.
• When received at any other time, the program continues until encountering a
PRINT statement. At this time data output is suspended. The program
continues to fill the output buffer until the buffer is full.
• XON ([CTRL-Q]) is required to resume data output operation.
Syntax
[CTRL–S]
Example
> LIST
1 REM EXAMPLE PROGRAM
10A=1
20 DO
[CTRL–S]
.
.
.
[CTRL–Q]
30A=A+1
40 PRINT A
50 WHILEA<20
READY
>
In this example, the output is suspended when [CTRL–S] is pressed. The output is
continued after
[CTRL–Q] is pressed.
IMPORTANT
[CTRL-S] only works if you have enabled software
handshaking on the program port.