User interface / Windows and forms in programs |
Displays text at a given line/column position in the current window.
DISPLAY text AT line, column [ ATTRIBUTE ( display-attributes ) ]
The DISPLAY AT instruction evaluates a string expression and displays the result at a given line and column in the current window. This instruction is typically used in text-based applications to display static text on the screen such as messages or decoration lines with - (dash) or _(underscore) characters.
The DISPLAY AT instruction should only be used in TUI mode. To display data at a given place in a graphical form, use form fields and the DISPLAY BY NAME or DISPLAY TO instructions, or use interative instructions with the UNBUFFERED mode to automatically display program variable data to form fields.
When using DISPLAY AT in GUI mode, the text will only be displayed if the current window contains no form, or contains a form defined with the SCREEN layout.
Attribute | Description |
---|---|
BLACK, BLUE, CYAN, GREEN, MAGENTA, RED, WHITE, YELLOW | The TTY color of the displayed text. |
BOLD, DIM, INVISIBLE, NORMAL | The TTY font attribute of the displayed text. |
REVERSE, BLINK, UNDERLINE | The TTY video attribute of the displayed text. |