Using Terminal Keys To Define Special Program Functions; Compaq Cobol Characters Returned For Cursor Positioning, Program Function, Function, Keypad, And Keyboard Keys - Compaq COBOL AAQ2G1FTK User Manual

Compaq computer accessories user manual
Table of Contents

Advertisement

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,
Key Name
Cursor up
Cursor down
Cursor right
Cursor left
Program function
Program function
Program function
Program function
Keypad
Keypad
Keypad
Keypad
Keypad
Keypad
Keypad
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.
11–20 Using ACCEPT and DISPLAY Statements for Input/Output and Video Forms
Program Function, Function, Keypad, and Keyboard Keys
Keypad or Keyboard
Name
up arrow
down arrow
right arrow
left arrow
PF1
PF2
PF3
PF4
left blank
center blank
right blank
0
1
2
3
Characters Returned in the Data
Name Specified by CONTROL KEY IN
1
First
Remaining (Notes)
CSI
A
CSI
B
CSI
C
CSI
D
SS3
P
SS3
Q
SS3
R
SS3
S
SS3
P
SS3
Q
SS3
R
SS3
p
SS3
q
SS3
r
SS3
s
(continued on next page)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COBOL AAQ2G1FTK and is the answer not in the manual?

Table of Contents