C Language Development Kit/Character maps and key codes/Special key codes

From OptiWiki

Jump to: navigation, search

The key codes for special keys are defined in the lists below. The key codes are returned by functions like getchar() when the user presses a special key.

Contents

Special keys on the DWT 7133

ENT_KEY Enter key
UP_KEY Up arrow key
DOWN_KEY Down arrow key

Special keys on the H 13, OPH 100x and PHL terminals

BS_KEY Backspace key
ENT_KEY Enter key
CLR_KEY Escape key
TRIGGER_KEY Trigger key
Q1_KEY Option key 1
Q2_KEY Option key 2
(following defines are not for the PHL 1300)
DOWN_KEY Down arrow key
RIGHT_KEY Right arrow key
LEFT_KEY Left arrow key
UP_KEY Up arrow key
F1_KEY Function key 1
F2_KEY Function key 2
F3_KEY Function key 3
F4_KEY Function key 4
(following defines are not for the H 13, OPH 100x and not for the PHL 1300)
F5_KEY Function key 5
F6_KEY Function key 6
F7_KEY Function key 7
F8_KEY Function key 8
BL_KEY Back light key
(following define is only for the H 13 & OPH 100x)
SHIFT_KEY Shift key (only when Handle shift by application has been enabled by using systemsetting("*R");

Special keys on the OPL 97xx

TRIGGER_KEY Q1_KEY
(=UP_KEY)
Q2_KEY
(=DOWN_KEY)
ENT_KEY BS_KEY CLR_KEY SHIFT_KEY
Description Trigger key '1'-key
(=up arrow key)
'2'-key
(=down arrow key)
Enter key Backspace key Escape/clear key Shift key
OPL 9723
OPL 9724
OPL9727
YES YES YES NO NO NO NO
OPL 9725
OPL 9726
OPL 9723R
OPL 9713
YES NO NO NO NO NO NO
OPL 9728
OPL 9712
YES YES YES YES YES YES YES*

* SHIFT_KEY can only be returned when Handle shift by application has been enabled by using systemsetting("*R");

Special keys on the DCL 153x

TRIGGER_KEY Q1_KEY
(=UP_KEY)
Q2_KEY
(=DOWN_KEY)
ENT_KEY BS_KEY CLR_KEY SHIFT_KEY
Description Trigger key '1'-key
(=up arrow key)
'2'-key
(=down arrow key)
Enter key Backspace key Escape/clear key Shift key
DCL1530 YES YES YES NO NO NO
DCL1538 YES YES YES YES YES YES
Views
Personal tools