Using ACCEPT and DISPLAY Statements for Input/Output and Video Forms
11.2 Designing Video Forms with ACCEPT and DISPLAY Statement Extensions
Table 11–2 (Cont.) Compaq COBOL Characters Returned for Cursor
Key Name
Ctrl/T
Ctrl/U
Ctrl/V
Ctrl/W
Ctrl/X
Ctrl/Y
Ctrl/Y
Ctrl/Z
Ctrl/Z
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.
The definition and value of the CSI and SS3 characters used in Table 11–2 follow:
01 SS3X
01 SS3 REDEFINES SS3X
01 CSIX
01 CSI REDEFINES CSIX
Figure 11–10 and Figure 11–11 show the Compaq COBOL control keys for various
terminals. The shaded keys correspond to the keypad names in Table 11–2, which
lists the characters returned to the application program.
In Figure 11–11, your keyboard may differ slightly, but the Compaq
COBOL control keys are as pictured.
Example 11–10 shows you how to use the CONTROL KEY phrase to handle
arrow keys, program function keys, keypad keys, Ctrl/Z, Tab, and Return.
When you use this phrase, you allow program function keys and arrow keys, as
well as Return and Tab keys, to terminate input. This phrase also permits you to
use those keys to move the cursor and to make menu selections without typing
any data on the screen.
Using ACCEPT and DISPLAY Statements for Input/Output and Video Forms 11–23
Positioning, Program Function, Function, Keypad, and
Keyboard Keys
Keypad or Keyboard
Name
First
20
21
22
23
24
Not Available
25
Results depend
on presence or
absence of the
AT END phrase
in the ACCEPT
statement
Not Available
PIC 9999 COMP VALUE 143.
PIC X.
PIC 9999 COMP VALUE 155.
PIC X.
Note
Characters Returned in the Data
Name Specified by CONTROL KEY IN
1
Remaining (Notes)
(on Tru64 UNIX)
(on OpenVMS Alpha)
(on Tru64 UNIX)
(on OpenVMS Alpha)
(on Tru64 UNIX)
Need help?
Do you have a question about the COBOL AAQ2G1FTK and is the answer not in the manual?
Questions and answers