mclement@pegasus.astro.utoronto.ca (maurice clement) (02/02/90)
I recently installed tcsh on my sun workstation with a type 4 keyboard. It appears to work properly except for the arrow keys which can be simulated with control codes (^b, ^f, ^p, and ^n). However, it would be nice to be able to map the current key codes (\E[215z, \E[217z, etc.) to the more standard \E[A, \E[B, etc. But how to do it??? Can anyone help me, please? Maurice Clement mclement@pegasus.astro.utoronto.ca Dept of Astronomy University of Toronto, Toronto, ON
mclement@pegasus.astro.utoronto.ca (maurice clement) (02/14/90)
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