Windows in BASIC 7.0

Started by Blacklord, August 13, 2007, 09:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Blacklord

One of the nifty things about the 128 was the ESC key sequences. It was possible to create a "window" on the screen using the ESC, T and ESC, B combinations. One would position their cursor where they want the top-left corner of the window to be, and then would proceed to press the ESC key, followed by the T key (not at the same time), to define the TOP. This is followed by positioning the cursor to where the user wants to define the bottom-right corner, and pressing ESC, followed by the B key, to define the BOTTOM.

A simple program would define a window in which text can scroll, while not affecting the rest of the screen.

10 PRINT CHR$(147)
20 CHAR,10,10,CHR$(27)"T"
30 CHAR,10,10,CHR$(27)"B"
40 LIST