Previous Topic: Keyboard Mapping FileNext Topic: Input Strings for the Keyboard Mapping File


Keyboard Mapping File Terminal Definitions

Each set of terminal definitions begins with the string term= and continues with input and output string definitions. The format is shown in the following example and defined in the following table.

term= [IEF_TERMSYS value]
term= [alternative IEF_TERMSYS value]
mnemonic name or phrase= definition string [ ]
@endterm

Element

Description

term=

Identifies the terminal type specified in the environment and marks the start of a set of definitions for a terminal. If a terminal type has more than one name, include an additional term line for each name.

If there are multiple "term=" terminal definition blocks for different platforms, an associated platform value is associated with the "term=" keyword delimited by [], determined through the environment variable IEF_TERMSYS.

Note: The name specified by the user with the TERM environment variable must exactly match the term= name in this file to use the definition.

mnemonic name or phrase=

Identifies the corresponding AEF key or function.

definition string [ ]

Identifies the input key string or output function string.

@endterm

Ends the set of key definitions for a particular terminal.

Each input key string or output function string is on a separate line with the mnemonic name or phrase (symbol) and the definition string. A space or end of line terminates the definition string. For output string definitions, the remainder of the line is ignored and may be used for comments. For input key string definitions, the key, or keys, generating the input string is enclosed in brackets. AEF displays the key when a user requests HELP using Esc h.

The following is an example of a keyboard mapping file:

term=ps2  [HP9000]
backtab=^@
lines=25
enter=\EOM [NumPad Enter]
crgret=^M [Enter]
delete=\EOn
lns=\EOp
down=\EOB
upkey=\EOA
left=\EOD
right=\EOC
home=\EOw
eraseof=\Ef [Esc f]
eraseIn=\Es [Esc s]
pa1=\EOE [Alt F5]
pa2=\EOF [Alt F6]
pa3=\EOG [Alt F7]
pf1=\EOP
pf2=\EOQ
pf3=\EOR
pf4=\EOS
pf5=\EOT
pf6=\E[17~
pf7=\E[18~
pf8=\E[19~
pf9=\E[20~
pf10=\E[21~
pf11=\E[23~ [shift F1]
pf12=\E[24~ [shift F2]
pf13=\E[25~ [shift F3]
pf14=\E[26~ [shift F4]
pf15=\E[28~ [shift F5]
pf16=\E[29~ [shift F6]
pf17=\E[31~ [shift F7]
pf18=\E[32~ [shift F8]
pf19=\E[33~ [shift F9]
pf20=\E[34~ [shift F10]
pf21=\E[OK [Alt F1]
pf22=\E[OL [Alt F2]
pf23=\E[OO [Alt F3]
pf24=\EON [Alt F4]
blink=\E[1;5m
normal=\E[0;1m
reset=\E[0;1m
reverse=\E[0;7m
underscore=\E[0;4m
blue normal=\E[0;1;36m
red normal=\E[0;1;31m
magenta normal=\E[0;1;35m
green normal=\E[0;1;32m
white normal=\E[0;1;37m
cyan normal=\E[0;1;36m
yellow normal=\E[0;1;33m
white normal=\E[0;1;37m
blue reverse=\E[7;1;34m
red reverse=\E[7;1;31m
magenta reverse=\E[7;1;35m
green reverse=\E[7;1;32m
white reverse=\E[7;1;37m
cyan reverse=\E[7;1;36m
yellow reverse=\E[7;1;33m
white reverse=\E[7;1;37m
blue blink=\E[5;1;34m
red blink=\E[5;1;31m
magenta blink=\E[5;1;35m
green blink=\E[5;1;32m
white blink=\E[5;1;37m
cyan blink=\E[5;1;36m
yellow blink=\E[5;1;33m
@endterm