259 LISTO list option Purpose When a program is listed on the screen or the printer, it is often convenient to show all loops within the program indented. LISTO can be used to control the way that the LIST command displays a program on the screen. It can cause the computer to insert spaces in three situations: – After the line number. – During FOR...NEXT loops. – During REPEAT...UNTIL loops. The number following LISTO should be in the range 0 to 7. 0 Implies no inserted spaces. 1 Implies a space after the line number. 2 Implies spaces during FOR...NEXT loops. 4 Implies spaces during REPEAT...UNTIL loops.
The numbers which select each option (1, 2 or 4) can be added together to select multiple options. If spaces were required during FOR...NEXT and REPEAT...UNTIL loops then LISTO6 would be selected. LISTO7 puts a space after the line number and double spaces for FOR...NEXT and REPEAT...UNTIL loops. The most common options are LISTO0 and LISTO7 . When editing programs using the cursor editing keys it is strongly advised that you use the LISTO0 option or else you will COPY in a lot of extra space. Description LISTO affects the print format produced by subsequent LIST commands.
Bit 0 of the argument controls the single space after the line number; bit 1 the double space in FOR...NEXT loops; bit 2 the double space in REPEAT...UNTIL loops. Syntax LISTO Associated keywords LIST