1 .\" $FreeBSD: src/usr.sbin/pcvt/userkeys/vt220keys.1,v 1.7.2.3 2003/03/11 22:31:30 trhodes Exp $
2 .\" $DragonFly: src/usr.sbin/pcvt/userkeys/Attic/vt220keys.1,v 1.2 2003/06/17 04:29:59 dillon Exp $
9 .Nd "define SHIFTED function keys on VT220 terminal"
13 .Op Ar keyname keystring ...
19 in vt200 mode to allow user
20 definition of the SHIFTED function keys.
23 specified on the command line will be loaded with
28 is one of the following words:
29 .Cm F6 F7 F8 F9 F10 F11 ESC
30 .Cm F12 BS F13 LF F14 HELP
31 .Cm DO F17 F18 F19 F20 .
33 must be quoted if spaces, tabs, or shell metacharacters are included.
37 utility expects to receive some combination of option flags and/or
38 argument pair(s), otherwise a usage message
42 .Bl -tag -width indent
44 Clears all SHIFTED function key definitions before setting them to user
47 Read the initialization file
49 for SHIFTED function key definitions.
50 This is done before any
51 argument pair specified on the command line is processed.
52 Each line in the file must consist of two fields (separated by spaces
53 or tabs) where the first field is the
55 and the second field is the
57 The second field extends to the end of the line, thus a
59 may include spaces or tabs.
60 A newline (return) may be specified
61 within the string by using the C Language notation for newline (\\n).
63 Locks the function keys from further definition.
64 Locking occurs after processing the initialization file (if the
66 option is specified) and any argument
69 to unlock is by turning the power off.
74 vt220keys F6 'nroff -ms '
75 vt220keys -i F20 'cc -O -c '
79 Pressing the function keys without using the shift key, generates
80 a string of characters.
83 this string can be aliased to some command.
86 .Dl alias\ ^[[17~\ "ls\ -CR\ |\ more"
90 is what is generated by pressing the F6 key.
92 F6 can perform two commands, depending if pressed with/without the SHIFT
97 utility can be called from your
103 will create an initialization file and include a line like
109 in the above mentioned files.
110 This way the SHIFTED function keys
111 will be set to your favorite commands when logging in.
113 If the SHIFTED function keys are unlocked, redefinition of a SHIFTED
114 function key will rewrite the old string.
116 There are 256 bytes available for the SHIFTED function keys.
118 supplied on a first\-come/first\-serve basis.
119 After the 256 bytes are
120 used, you can't define any more keys unless space is cleared.
122 can be done by redefining a key to contain a string of fewer bytes.
124 All key definitions are stored in volatile RAM, and are lost when
125 terminal power is lost.
127 The ESC key (unshifted) no longer generates the proper escape character.
129 is of particular importance since many editors require use of the
131 Here are some available alternatives:
134 The escape character can be generated by typing
144 .Dl "vt220keys ESC '^['"
146 This will require you
147 to press the SHIFT key and ESC to generate the escape sequence.
149 Some editors, allow other character(s) to be substituted for the
153 include this line in your
156 .Dl (bind-to-key\ "ESC-prefix"\ "\\033[23~")
158 Thus when the ESC key is pressed,
160 will allow the characters generated
162 to perform the same function as the escape
166 .Bl -tag -width $HOME/.vt220rc
167 .It Pa $HOME/.vt220rc
172 .%B "VT220 Programmer Reference Manual"
175 .%B "VT220 Programmer Pocket Guide"