Reading the Window List
The list of active windows may be retrieved from the terminal driver through the use of the 'WINDOW'("LIST") mnemonic sequence. This will cause the transmission of a character containing the number of active windows followed by the active window numbers in sequence (from the current window to the least active window). Each transmitted character is a binary character and must be received with the READ RECORD option.
The following program fragment is a simple example of reading this list:
10000 REM 10000"return window list in LIST$
10010 PRINT (0)'EE'+'CI'+'WINDOW'("LIST"),
10020 READ RECORD(0,SIZ=1)COUNT$
10030 READ RECORD(0,SIZ=ASC(COUNT$))LIST$
10040 PRINT (0)'BE',
This would return a string containing the current list of windows, from the most active (byte 1) to the least active (the last byte).