Compaq COBOL AAQ2G1FTK User Manual

Page 413

Advertising
background image

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

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)

Ctrl/T

20

(on Tru64 UNIX)

Ctrl/U

21

Ctrl/V

22

Ctrl/W

23

Ctrl/X

24

Ctrl/Y

Not Available

(on OpenVMS Alpha)

Ctrl/Y

25

(on Tru64 UNIX)

Ctrl/Z

Results depend
on presence or
absence of the
AT END phrase
in the ACCEPT
statement

(on OpenVMS Alpha)

Ctrl/Z

Not Available

(on Tru64 UNIX)

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

PIC 9999 COMP VALUE 143.

01

SS3 REDEFINES SS3X

PIC X.

01

CSIX

PIC 9999 COMP VALUE 155.

01

CSI REDEFINES CSIX

PIC X.

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.

Note

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

Advertising