Skip to content

WINDOW FKEYS

Reload Function Keys

This directive provides for the reloading of function keys with values specific to each Thoroughbred Basic Window, without affecting the previous Thoroughbred Basic Windows that were created.

WINDOW FKEYS (fkey-values) ["NAME=TBWin-name"]
fkey-values
is a string of function key numbers, the string lengths, and their matching new values:
Byte(s)
Meaning
1
the function key number.
2
the length of the following new function key string.
3 - n
the new function key string.
This sequence
can be repeated in one string to change several function keys at

a time. If a function key number is specified with a zero length and no following string, then the specified function key is reset to the default. If fkey-values is a null string, then all the function keys are reset to their defaults.

TBWin-name
is an optional specifier that causes this directive to change the function key values for the specified TBWin-name instead of the currently active Thoroughbred Basic Window. If omitted, the currently active Thoroughbred Basic Window is the default.

This directive is generally available starting with release level 8.2.

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.

WINDOW FKEYS ($0105$+"LIST"+$0D0204$+"RUN"+$0D$);

loads the string “LIST” followed by a carriage return into F1 and loads the string “RUN” followed by a carriage return into F2.

WINDOW FKEYS ($0200$);

resets F2 to the original value.

WINDOW FKEYS (" ");

resets all the function keys to their original values.

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