1 .\" $FreeBSD: src/usr.sbin/pcvt/userkeys/vt220keys.1,v 1.7.2.3 2003/03/11 22:31:30 trhodes Exp $
8 .Nd "define SHIFTED function keys on VT220 terminal"
12 .Op Ar keyname keystring ...
18 in vt200 mode to allow user
19 definition of the SHIFTED function keys.
22 specified on the command line will be loaded with
27 is one of the following words:
28 .Cm F6 F7 F8 F9 F10 F11 ESC
29 .Cm F12 BS F13 LF F14 HELP
30 .Cm DO F17 F18 F19 F20 .
32 must be quoted if spaces, tabs, or shell metacharacters are included.
36 utility expects to receive some combination of option flags and/or
37 argument pair(s), otherwise a usage message
41 .Bl -tag -width indent
43 Clears all SHIFTED function key definitions before setting them to user
46 Read the initialization file
48 for SHIFTED function key definitions.
49 This is done before any
50 argument pair specified on the command line is processed.
51 Each line in the file must consist of two fields (separated by spaces
52 or tabs) where the first field is the
54 and the second field is the
56 The second field extends to the end of the line, thus a
58 may include spaces or tabs.
59 A newline (return) may be specified
60 within the string by using the C Language notation for newline (\\n).
62 Locks the function keys from further definition.
63 Locking occurs after processing the initialization file (if the
65 option is specified) and any argument
68 to unlock is by turning the power off.
73 vt220keys F6 'nroff -ms '
74 vt220keys -i F20 'cc -O -c '
78 Pressing the function keys without using the shift key, generates
79 a string of characters.
82 this string can be aliased to some command.
85 .Dl alias\ ^[[17~\ "ls\ -CR\ |\ more"
89 is what is generated by pressing the F6 key.
91 F6 can perform two commands, depending if pressed with/without the SHIFT
96 utility can be called from your
102 will create an initialization file and include a line like
108 in the above mentioned files.
109 This way the SHIFTED function keys
110 will be set to your favorite commands when logging in.
112 If the SHIFTED function keys are unlocked, redefinition of a SHIFTED
113 function key will rewrite the old string.
115 There are 256 bytes available for the SHIFTED function keys.
117 supplied on a first\-come/first\-serve basis.
118 After the 256 bytes are
119 used, you can't define any more keys unless space is cleared.
121 can be done by redefining a key to contain a string of fewer bytes.
123 All key definitions are stored in volatile RAM, and are lost when
124 terminal power is lost.
126 The ESC key (unshifted) no longer generates the proper escape character.
128 is of particular importance since many editors require use of the
130 Here are some available alternatives:
133 The escape character can be generated by typing
143 .Dl "vt220keys ESC '^['"
145 This will require you
146 to press the SHIFT key and ESC to generate the escape sequence.
148 Some editors, allow other character(s) to be substituted for the
152 include this line in your
155 .Dl (bind-to-key\ "ESC-prefix"\ "\\033[23~")
157 Thus when the ESC key is pressed,
159 will allow the characters generated
161 to perform the same function as the escape
165 .Bl -tag -width $HOME/.vt220rc
166 .It Pa $HOME/.vt220rc
171 .%B "VT220 Programmer Reference Manual"
174 .%B "VT220 Programmer Pocket Guide"