DISPLAY AT

Displays text at a given line/column position in the current window.

Syntax

DISPLAY text AT line, column [ ATTRIBUTES ( display-attributes ) ]
  1. text is any expression to be evaluated and displayed at the given position in the current window.
  2. line is an integer expression defining the line position in the current window.
  3. column is an integer expression defining the column position on the screen.
  4. display-attributes defines the display attributes for the text.

Usage

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.

Table 1. Display-attributes supported by the DISPLAY AT statement
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.