🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #13767

Re: Trouble with arrow keys in tcsh

#13767
From: maurice clement
Date: Tue, 13 Feb 1990 23:30
19 lines
1433 bytes
I recently posted a message asking for instructions on how to get the
arrow keys working in tcsh on my Sun workstation with a type 4 keyboard.
I received several responses for which I am grateful, but I ended up
solving the problem myself.  Here is the solution.

It turns out that tcsh does not check termcap to find out what it should
expect from the cursor keys but instead relies on defaults unless told
explicity otherwise with the "bind" command.  I discovered that escape
sequences can be bound to tcsh functions by using the F-prefix and not the
X-prefix as the man page suggests.  This "typo" was the source of my
problem.

Thus, to bind 'up-history' to the up-arrow on my machine, I have the
following command in my .tcshrc file:  "bind up-history F-215z".  This
plus three similar statements for the other three arrow keys does the
trick!

Maurice Clement				University of Toronto
Dept of Astronomy			mclement@pegasus.astro.utoronto.ca
Technical Details
Message-ID: <4960@brazos.Rice.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request
From: mclement@pegasus.astro.utoronto.ca (maurice clement)
Newsgroups: comp.sys.sun
Subject: Re: Trouble with arrow keys in tcsh
Keywords: Software
Message-ID: <4960@brazos.Rice.edu>
Date: 13 Feb 90 23:30:36 GMT
Sender: root@rice.edu
Organization: Sun-Spots
Lines: 19
Approved: Sun-Spots@rice.edu
X-Refs:  Original: v9n27
X-Sun-Spots-Digest: Volume 9, Issue 34, message 10