🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1719

tcsh binding of function keys

#1719
From: Martin Boyer
Date: Tue, 06 Nov 1990 20:55
33 lines
1761 bytes
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@ireq-robot.hydro.qc.ca
Institut de recherche d'Hydro-Quebec    mboyer@ireq-robot.uucp
Varennes, QC, Canada   J3X 1S1
+1 514 652-8136
Technical Details
Message-ID: <3765@s3.ireq.hydro.qc.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!clyde.concordia.ca!s3!gamin

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!clyde.concordia.ca!s3!gamin
From: gamin@ireq-robot.hydro.qc.ca (Martin Boyer)
Newsgroups: comp.unix.shell
Subject: tcsh binding of function keys
Message-ID: <3765@s3.ireq.hydro.qc.ca>
Date: 6 Nov 90 20:55:48 GMT
Sender: root@s3.ireq.hydro.qc.ca
Organization: Laboratoire de robotique, Institut de recherche d'Hydro-Quebec
Lines: 33