NET/MASTER Network Control Language (NCL) Reference Manual

&SYS.CURS.POS
System Variables
5–12 106126 Tandem Computers Incorporated
&SYS.CURS.POS The &SYS.CURS.POS system variable contains the offset to the cursor position from
the start of the field defined by &SYS.CURS.FLD.
&SYS.CURS.POS
Considerations
For a 6530-type terminal, the cursor is always on an input field, if one exists. For
3270-type terminals, the cursor can be placed in either an input or an outvar field,
if either exists.
If the cursor is positioned on an output field, &SYS.CURS.POS is null.
If there are no input or outvar fields on the panel, &SYS.CURS.POS is null.
For more information on outvar field names, see the TYPE operand in the #FLD
panel control statement in Section 6, “Panel Control Statements.”
See also the &SYS.CURS.COL, &SYS.CURS.ROW, and &SYS.CURS.FLD system
variables, in this section.
See the panel statement #OPT in Section 6, “Panel Control Statements.”
Example
The following example will work only if the panel named “HELP” exists in one of the
NCL panel libraries. The process first displays the name of the most recent input field,
then the offset to the cursor position from the start of this field:
PANEL_EX:PROCEDURE
PANEL NAME=HELP
SAY "MOST RECENT INPUT FIELD WAS” &SYS.CURS.FLD
SAY "OFFSET WAS” &SYS.CURS.POS
PANELEND
END PANEL_EX