Skip to content

WINDOW RESIZE

Change Thoroughbred Basic Window Size

This directive enlarges or reduces the size of the specified Thoroughbred Basic Window based on its currently defined size and the sizing commands given. All data displayed within the Thoroughbred Basic Window is redisplayed based on the new size.

WINDOW RESIZE ( width, height ) [ TBWin-name ] [,]
[ up-down, left-right ]
width
is any positive integer in the range of 1 to the maximum number of columns on the screen, designating the total width of the Thoroughbred Basic Window, including the border.
height
is any positive integer in the range of 1 to the maximum number of rows on the screen, designating the total height of the Thoroughbred Basic Window, including the border.
TBWin-name
is an optional specifier that causes this directive to affect the specified TBWin-name instead of the currently active terminal Thoroughbred Basic Window. If this specifier is omitted the currently active Thoroughbred Basic Window is resized.
up-down
is a keyword phrase specifying which direction the Thoroughbred Basic Window should grow or shrink in rows:

“UPDOWN=DOWN” adds rows to the bottom or removes rows from the top (default for growth)

“UPDOWN=UP” adds rows to the top or removes rows from the bottom (default for shrinkage).

left-right
is a keyword phrase specifying which direction the Thoroughbred Basic Window should grow or shrink in columns:

“LEFTRIGHT=LEFT” adds columns to the left or removes columns from the right (default for shrinkage)

“LEFTRIGHT=RIGHT” adds columns to the right or removes columns from the left (default for growth).

This directive is generally available starting with release level 8.2.

When resizing the main Thoroughbred Basic Window, by using the attribute “NAME=0”, the values for width and height must be exactly the same for the number of columns and rows in the terminal’s screen respectively.

If you use this directive but Thoroughbred Basic Windows is not enabled, an ERR=70 results. For information on how to enable Thoroughbred Basic Windows, please refer to the information on TCONFIG files and IPL files in the chapter on System Files in the Thoroughbred Basic Customization and Tuning Guide.

If this task is configured for Thoroughbred Basic Windows, only the standard set of Thoroughbred Basic terminal mnemonics should be used to send output to the terminal. Using direct hexadecimal escape sequences to control the terminal screen may cause the Thoroughbred Basic Windows Manager to lose knowledge of cursor position and character attributes. For more information on terminal mnemonics, please refer to the Thoroughbred Basic Customization and Tuning Guide.

If up-down and left-right are not specified, growth is down and to the right; shrinkage is up and to the left. Cursor position 0,0 remains the same after the resizing as it was before.

WINDOW RESIZE ( 80, 12 ) "UPDOWN=UP"

takes a full-screen 80 by 24, currently active Thoroughbred Basic Window and condenses it into the upper half of the terminal screen resulting in 80 columns by 12 rows, positioning the cursor in the upper left corner of the newly sized Thoroughbred Basic Window.

Other WINDOW directives
Additional WIN functions

From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF