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:
|
This would return a string containing the current list of windows, from the most active (byte 1) to the least active (the last byte).