Restores the SuperBASIC F1 (monitor) screen windows #0, #1 and #2 to their normal size, colours and borders after a program has left them in a mess, without a reset. LRUN it, or merge the windex procedure into your own graphics programs and games. It does not touch windows opened by EXEC’d jobs.
Contributed by Ed Kingsley, as the REM lines say, and passed on by Hugh Howie in his QLIPS column.
Published in Sinc-Link May-June 1992 (QLIPS).
Source Code
100 REMark ==============================
105 REMark ********* WINDex_bas *********
110 REMark ==============================
115 :
120 REMark Restores F1 Screen WINDOWs
125 REMark #0, #1 and #2 to their
130 REMark Normal values if they are
135 REMark "Trashed" by an unruly program
140 REMark Contributed by Ed Kingsley
145 :
150 REMark Extract and add the PROCedure
155 REMark To your own graphic programs
160 REMark & Games to clean your WINDOWs
165 :
170 REMark LRUN WINDex_bas
175 :
200 windex
202 :
300 DEFine PROCedure windex
302 REMark ------------------
304 MODE 4
306 WINDOW#0,512,50,0,206:PAPER#0,0:INK#0,5:
CSIZE#0,0,0
308 OPEN#1,con_256x202a256x0_128:PAPER#1,2:
INK#1,7:BORDER#1,1,255:CSIZE#1,0,0
310 OPEN#2,con_256x202a0x0_128:PAPER#2,7:
INK#2,2:BORDER#2,1,255:CSIZE#2,0,0
312 CLS#0:CLS#1:CLS#2
314 END DEFine windexNote: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.