Feb 212012

I found myself in a situation where I use ssh to remotely connect to Solaris or Linux server from a Windows7 OS. After been connected I had the problem of not been able to use the arrow keys to navigate up and down in the command line history.

Normally the TERM variable on Windows and Unix control this behavior. In the connection process ssh exchange the TERM terminal information and set the variable accordingly. Windows has this set to dumb while it can be set as pcansi

Other variables that can also influence this.:

On the Windows PC side in a command prompt (cmd)
set TERM pcansi

On the Unix server side, depending on you configuration of software called termcap on you os.
setenv TERMINFO /usr/share/lib/terminfo
setenv TERMINFO /usr/local/share/terminfo

Leave a Reply



Return to Panoramic Solution