Trouble with arrow keys in tcsh

maurice clement mclement at pegasus.astro.utoronto.ca
Wed Feb 14 10:30:36 AEST 1990


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 at pegasus.astro.utoronto.ca



More information about the Comp.sys.sun mailing list