Previous Topic: Position the Cursor at a FieldNext Topic: Combining Session Information


Identify the Cursor Position

The following ACL/E variables represent the location of the cursor on an alternate screen in terms of its row, column, and row/column coordinate:

Locating the Cursor by Row

The variable &TCSRROW represents the row in which the cursor is positioned on an alternate screen. For example, if the cursor is in row 2, the value of &TCSRROW is 2.

Locating the Cursor by Column

The variable &TCSRCOL represents the column in which the cursor is positioned on an alternate screen. For example, if the cursor is in column 5, the value of &TCSRCOL is 5.

Locating the Cursor on the Total Screen

The variable &TCURSOR represents the position of the cursor in relation to the absolute screen size. For example, if the cursor is in row 2, column 5 on a screen that is 80 columns wide, the value of &TCURSOR is 85.