Moving Windows, Removing Windows, Accessing Inactive Windows

To

Do This

Move Windows

Use the 'MOVE' mnemonic, which provides a new position for the upper-left corner of the current window and redraws it.

Remove Windows

  • To remove the current window, use the 'POP' mnemonic, which removes the current window and continues the display process at the next window in the list. For example:

>PRINT 'POP',

  • To remove a window that is not the current window, use the 'DROP' mnemonic. For example:

>PRINT 'DROP'(WINDOW),

Using the 'DROP' mnemonic with the current window removes it and continues the display process at the next window in the list. Attempting to remove the only active window or a non-existent window will generate an error.

Access Inactive Windows

Use the 'GOTO' mnemonic, which accepts a one-integer designating a window number. If the window exists it becomes the current window. If the referenced window does not exist, the terminal driver will generate an !ERROR=13.

If the window desired is the window prior to the current window, the mnemonic 'SWAP' is the easiest access. This makes the prior window on the list the current window.

The following program fragment will cycle through the current windows on a terminal:

12000 REM 12000"cycle through current windows
12010 PRINT 'EE'+'CI'+'WINDOW'("LIST"),
12020 READ RECORD (0,SIZ=1)COUNT$
12030 READ RECORD (0,SIZ=ASC(COUNT$))LIST$
12040 IF LEN(LIST$)=1 THEN GOTO 12080
12050 FOR WINDOW=LEN(LIST$) TO 1 STEP -1
12060 PRINT 'GOTO'(ASC(LIST$(WINDOW))),
12070 NEXT WINDOW
12080 PRINT 'BE',