Skip to content

WINDOW ATTR

Set Thoroughbred Basic Window Attribute

This directive sets the current terminal attribute to the specified attribute state.

WINDOW ATTR ( attribute-num )

attribute-num is any integer in the range of 0 to 15.

This directive is generally available starting with release level 8.1.

The following table describes the attribute state for the given attribute-num:

attribute-num Terminal attribute state
0 Background, normal video, underline off, blink off
1 Foreground, normal video, underline off, blink off
2 Background, reverse video, underline off, blink off
3 Foreground, reverse video, underline off, blink off
4 Background, normal video, underline on, blink off
5 Foreground, normal video, underline on, blink off
6 Background, reverse video, underline on, blink off
7 Foreground, reverse video, underline on, blink off
8 Background, normal video, underline off, blink on
9 Foreground, normal video, underline off, blink on
10 Background, reverse video, underline off, blink on
11 Foreground, reverse video, underline off, blink on
12 Background, normal video, underline on, blink on
13 Foreground, normal video, underline on, blink on
14 Background, reverse video, underline on, blink on
15 Foreground, reverse video, underline on, blink on

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.

Not all terminals have the ability to set the current screen attribute with this directive. If the attribute change sequence is available to Thoroughbred Basic Windows, all screen changes by the Thoroughbred Basic Windows system are managed using this method.

WINDOW ATTR ( 3 )

sets the current terminal attribute to foreground, reverse video, underline off, blink off.

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