NET/MASTER Network Control Language (NCL) Reference Manual

&SYS.INKEY
System Variables
106126 Tandem Computers Incorporated 5–47
Example
The following example shows a panel definition named PANEX01. An NCL
procedure called SHOW_KEYS is then listed. This procedure displays the
&SYS.INKEY and &SYS.NATIVE.INKEY system variables after displaying the panel:
#NOTE
#NOTE THIS IMPLEMENTS PANEX01
#NOTE
% ------------------- &SYS.PANEL.ID -------------------------
+
+ PANEL OK Y or N ===>_pnlyn
+ Enter Y if: you like this panel display
+ or N if you don’t
+ &INVAR
SHOW_KEYS: PROCEDURE
PANEL NAME=PANEX01
SAY “&SYS.INKEY = “ &SYS.INKEY
SAY “&SYS.NATIVE.INKEY = “ &SYS.NATIVE.INKEY
END SHOW_KEYS
In the previous example, if the user had pressed the function key F7, the
&SYS.NATIVE INKEY system variable would contain the value F7 and &SYS.INKEY
would contain PF07. The latter is the translated value of the natural or native key
used.