tcsh binding of function keys
Martin Boyer
gamin at ireq-robot.hydro.qc.ca
Wed Nov 7 07:55:48 AEST 1990
I just got the latest (5.19) version of tcsh and I have problems
binding SUN function keys. In the following example, I want to bind
R7 to beginning-of-line:
% bind function-key-prefix M-[
% bind beginning-of-line X-214z
bad key specification -- unknown name ""
The man page says:
If given two arguments bind binds the function (first argu-
ment) to the given key (second argument). The key may be:
the direct character or a caret-<letter> combination, which
is converted to control-<letter>; M-<letter> for an escaped
character; or X-<string> for a function key. For the last
of these, the function key prefix must be bound to the func-
tion "extended-key-prefix" and the string specified to the
bind command must not include this prefix.
Notice how it says "M-<letter>" and "X-<string>". I understand this
to mean that the M- prefix can be followed only by a single letter but
that the X- prefix can be followed by a string. I believe the
documentation is wrong but, anyhow, is there a workaround?
I know about .ttyswrc mapping, but I can't use that on a raw console.
--
Martin Boyer mboyer at ireq-robot.hydro.qc.ca
Institut de recherche d'Hydro-Quebec mboyer at ireq-robot.uucp
Varennes, QC, Canada J3X 1S1
+1 514 652-8136
More information about the Comp.unix.shell
mailing list