PreviousUNIX Session Recorder

Appendix A: UNIX Key Usage Chart

Because UNIX terminals vary widely, the keys mentioned in this book might not be available on your keyboard. This appendix lists the actual keystrokes required to obtain the described functions.

It also tells you how to select soft or hard operation for the Alt and Ctrl keys. With soft operation, the Alt or Ctrl key is automatically turned off after the next keystroke. This means that whenever you want a function from the Alt menu you must hold down Alt again to get the Alt menu displayed; and similarly with Ctrl.

With hard operation, the Alt and Ctrl keys work in a similar way to the Caps Lock key, in that having been pressed, they remain in effect until pressed again.

A.1 Default Key Usage

The following table lists the available functions, the key documented as resulting in that function, the keystrokes required to obtain the documented functions, and whether the keystroke can be configured.

Documented Key
Mapped To
Alternate Menu (soft) Alt /a Y
Alternate Menu (hard) Alt /x Y
Control Menu (soft) Ctrl /c Y
Control Menu (hard) Ctrl /z Y
/ / // Y
Escape Escape /@ Y
F1 F1 /1 x
F2 F2 /2 x
F3 F3 /3 x
F4 F4 /4 x
F5 F5 /5 x
F6 F6 /6 x
F7 F7 /7 x
F8 F8 /8 x
F9 F9 /9 x
F10 F10 /0 x
F11 F11 /- x
F12 F12 /= x
Backspace Backspace /b Y
Backtab Backtab /T Y
Caps Lock (upper case) Caps Lock /u Y
Delete Del /d Y
End End /e Y
Help F1 /? Y
Home Home /h Y
Insert Ins /i Y
Interrupt Ctrl+Break User Defined, (see Note 2) N/A
Left Shift Shift /l Y
Maphelp   /m Y
Num Lock Num Lock /# Y
Page Up Page-Up /p Y
Page Down Page-Down /n Y
Refresh Refresh /| Y
Right Shift Shift /r Y
Scroll Lock Scroll /s Y
Tab Tab /t Y


  1. Tab is the only case-sensitive keystroke. By default, lower-case Tab (/t) provides Tab, with upper-case Tab (/T) providing Backtab.

  2. You can define the interrupt key using the stty command. For example, to set it as Crl-C, you use the command:
        stty intr ^C 

    For information on stty, see your UNIX documentation.

  3. If your hardware can detect the Alt and Ctrl keys being depressed on their own, you can use the run-time configuration tunable detect_alt_ctrl. If detect_alt_ctrl is set to TRUE, then the run-time system detects the Ctrl, Alt, and Shift keys. These keys can then be used for COBOL utilities that would otherwise use the alternate key sequences of /c for Ctrl or /a for Alt. For example, the Development Environment is easier to use if detect_alt_ctrl can be set to TRUE. See the chapter Run-time Configuration in your Server Express User's Guide for information on setting detect_alt_ctrl. If you set detect_alt_ctrl, each key press is reassigned and the mapped key strokes are not used.

  4. The keystrokes listed above are those set up by default for your system. Those functions with a check mark (Y) in the column headed Configurable can have their associated keystroke mapped onto a keystroke of your choice. You can also configure the metacharacter used, which is / by default.

    To change the defaults, create the file and enter your choice of keys. (An example file, is supplied with this system.) On start-up, your COBOL system searches for in the current directory, then in the directory specified by the COBDIR environment variable. If it is not found the defaults are used. The following is an example file:

    * Micro Focus ADISKEY keyboard mapping file. Keystrokes are 
    * case insensitive except for TAB which uses Upper-Case-Tab 
    * for the Back-Tab function. An asterisk denotes a comment. 
    * This file shows the default keyboard mapping
             Meta-Char   is "/"
             Soft-Alt    is "a"
             Soft-Ctrl   is "c"
             Hard-Alt    is "x"
             Hard-Ctrl   is "z"
             Left-Shift  is "l"
             Right-Shift is "r"
             Caps-Lock   is "u"
             Num-Lock    is "#"
             Scroll-Lock is "s"
             Insert      is "i"
             Delete      is "d"
             Backspace   is "b"
             Home        is "h"
             End         is "e"
             Page-Up     is "p"
             Page-Down   is "n"
             Tab         is "t"
             Escape      is "@"
             Map-Help    is "m"
             Help        is "?"
             Refresh     is "|"

Copyright © 2000 MERANT International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.

PreviousUNIX Session Recorder