Using ACCEPT and DISPLAY Statements for Input/Output and Video Forms
11.2 Designing Video Forms with ACCEPT and DISPLAY Statement Extensions
11.2.6 Using Terminal Keys to Define Special Program Functions
Use the CONTROL KEY IN phrase of the ACCEPT statement to tailor your
screen-handling programs to give special meanings to any or all of these keys on
your terminal:
•
Cursor positioning keys (up arrow, down arrow, left arrow, and right arrow
keys)
•
Program function keys (PF1, PF2, PF3, and PF4)
•
Function keys (F6 to F20)
•
Keypad keys (if in application keypad mode) 0 to 9, minus ( – ), comma ( , ),
period ( . ), ENTER, FIND, INSERT HERE, REMOVE, SELECT, PREV
SCREEN, NEXT SCREEN
You can use the CONTROL KEY IN phrase to accept data and to terminate
it with a control key or to allow a user to press only a control key (for menu
applications).
Table 11–2 lists the characters returned to the data name specified in the
CONTROL KEY IN phrase.
Table 11–2 is for VT100 and later series terminals. Depending on your terminal
type, certain keys listed in this table are not applicable to your terminal keyboard.
Table 11–2 Compaq COBOL Characters Returned for Cursor Positioning,
Program Function, Function, Keypad, and Keyboard Keys
Characters Returned in the Data
Name Specified by CONTROL KEY IN
Key Name
Keypad or Keyboard
Name
First
1
Remaining (Notes)
Cursor up
up arrow
CSI
A
Cursor down
down arrow
CSI
B
Cursor right
right arrow
CSI
C
Cursor left
left arrow
CSI
D
Program function
PF1
SS3
P
Program function
PF2
SS3
Q
Program function
PF3
SS3
R
Program function
PF4
SS3
S
Keypad
left blank
SS3
P
Keypad
center blank
SS3
Q
Keypad
right blank
SS3
R
Keypad
0
SS3
p
Keypad
1
SS3
q
Keypad
2
SS3
r
Keypad
3
SS3
s
1
The CSI and SS3 characters are shown for your information only. You need not check for their
presence because the remaining characters are unique and need no qualification.
(continued on next page)
11–20 Using ACCEPT and DISPLAY Statements for Input/Output and Video Forms
Содержание COBOL AAQ2G1FTK
Страница 22: ......
Страница 30: ......
Страница 94: ......
Страница 110: ......
Страница 146: ......
Страница 180: ......
Страница 194: ...Processing Files and Records 6 1 Defi...
Страница 300: ......
Страница 490: ......
Страница 516: ......
Страница 517: ......
Страница 530: ......
Страница 534: ......
Страница 590: ......
Страница 620: ......