NET/MASTER Network Control Language (NCL) Reference Manual

&SYS.CURS.COL
System Variables
5–10 106126 Tandem Computers Incorporated
&SYS.CURS.COL 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.COL is set to the number of the column that contains the cursor, ranging
from 1 through 132, depending on the window size. When operating in vertical split-
screen mode, the column number is relative to the current window regardless of
where it begins on the physical screen.
&SYS.CURS.COL
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.FLD, &SYS.CURS.POS, and &SYS.CURS.ROW 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