SCREEN HOME_CURSOR

SCREEN HOME_CURSOR moves the cursor to a specified corner of a window.  There is no need to know the dimensions of the window.

SYNTAX

SCREEN HOME_CURSOR /USING/ window_id, position

window_id

is an integer system field, Global Storage (GS) field, or user-defined field that contains the window ID assigned to the window.

position

specifies the position to which the cursor moves.  The valid codes for position are:

  • @UPPER_LEFT specifies the upper-left corner.
  • @LOWER_LEFT specifies the lower-left corner.
  • @UPPER_RIGHT specifies the upper-right corner.
  • @LOWER_RIGHT specifies the lower-left corner.

EXAMPLE

SCREEN HOME_CURSOR USING MAIN_ID,@UPPER_LEFT

This example moves the cursor to the upper left corner of the MAIN_ID window.

Back to Statements and Commands    Next page SCREEN INSERT_CHARS