Using TERM on a DEC ALPHA system, the arrow key definitions changed. The TERM  the emulation was set to TTY because the connection was UNIX to UNIX, no conversion at all.
After some digging, the end user discovered that the cursor keys were switching to application mode. Closing TERM resets the keys to normal cursor mode. The  solution was:
- Copy /etc/termcap to /usr/term/termcap.mod.
- Change the following in /usr/term/termcap.mod for the console emulation type:
 ks=\E=ke=\E>ku=\E[Akl=\E[Dkr=\E[Ckd=\E[B3 
 
- Set the TERMCAP environment variable to /usr/term/termcap.mod and export it:
 TERMCAP=/usr/term/termcap.mod;export TERMCAP 
 
On starting TERM the keypad is turned on, but the arrow keys stay unaltered. TERM is looking at the keypad arrow keys, which now reflect the standard arrow keys.
				
				
					
						This entry was posted
						 
						on Monday, April 16th, 2007 at 1:49 pm						and is filed under TERM, UNIX.
						You can follow any responses to this entry through the RSS 2.0 feed. 
													Both comments and pings are currently closed.