NET/MASTER Network Control Language (NCL) Reference Manual
&SYS.CURS.ROW
System Variables
106126 Tandem Computers Incorporated 5–13
&SYS.CURS.ROW The &SYS.CURS.COL system variable is used in conjunction with &SYS.CURS.ROW
to determine the cursor column and row coordinates, respectively, of the last operator
input from a panel. These variables are set before control is returned to the procedure
that issues the PANEL verb. The panel must have been displayed using the PANEL
verb.
&SYS.CURS.ROW is set to the number of the row that contains the cursor, ranging
from 1 through 42, depending on the window size. When operating in split screen
mode, the row is relative to the current window, regardless of where it begins on the
physical screen.
&SYS.CURS.ROW
Considerations
&SYS.CURS.COL and &SYS.CURS.ROW are designed to be used with the
CURSOR operand of the #OPT panel control statement, to accomplish precise
positioning and to locate fields other than input fields.
See also the &SYS.CURS.COL, &SYS.CURS.FLD, and &SYS.CURS.POS system
variables, in this section.
See the panel statement #OPT in Section 6, “Panel Control Statements.”
Example
The following example works only if the panel named “HELP” exists in one of the
NCL panel libraries. The displayed output shows the cursor position (the row and
column) after the panel has been sent to the terminal:
PANEL_EX:PROCEDURE
PANEL NAME=HELP
SAY "LAST ROW WAS " &SYS.CURS.ROW
SAY "LAST COLUMN WAS " &SYS.CURS.COL
END PANEL_EX