15.20.3.3 Example
- The PF1 and PF2 keys are already defined: TD:DEFINE KEY PF1 " " /SET_STATE=gold TD:DEFINE KEY PF2 "HELP "/TERMINATE examples TD:DEFINE KEY PF3 "SET HIST PREV; NEW;HIST" /TERMINATE TD:DEFINE KEY PF4 "SET HIST NEXT; NEW;HIST" /TERMINATE This sets up 2 keys so that you can step through a list of histograms. TD:DEFINE KEY MINUS "SET HIST ID=" This sets up key to give the command. When the minus key on the keypad is pressed the command is entered, and you enter the number followed by the "RETURN" key. TD:DEFINE KEY KP7 "HISTOGRAM"/TERMINATE This sets up the 7 key on the keypad to histogram. TD:DEFINE KEY COMMA "SET FILE INPUT 'myfile'"/term This sets up the comma (,) key on the keypad to get commands from the file MYFILE.TOP. TD:DEFINE KEY PF4 "SET THREE ON"/term TD:DEFINE KEY PF4 "SET THREE OFF"/term/ifstate=gold This sets up PF4 as a key to turn THREE ON or OFF. To turn on three press PF4. To turn THREE OFF press PF1 PF4.