MidpSSH does not support non-ASCII characters in some [all? –d.] font sizes. This can cause display errors in ncurses programs that use VT100 graphics characters. The problem can be fixed by creating a terminfo entry for MidpSSH. Here’s how to do it:

First, pick an existing terminfo entry that works. xterm is a good choice although linux seems better if you have it. Dump it out using:-

infocmp linux > new.ti

Next, edit new.ti, changing the description line (right after the intial comment) to something like

midpssh|MidpSSH terminal emulator,

and remove the capabilites acsc, enacs, rmacs and smacs. Capabilities are separated by commas; if acsc is the only thing on one line, just delete the whole line. Then, recompile the entry with

tic new.ti

which should write to /etc/terminfo if you are root or ~/.terminfo otherwise.

Finally, go to your network settings in MidpSSH and set the terminal type to midpssh. If you use a UTF-8 locale, turn it off by putting something like this in your ~/.bashrc:

case "$TERM" in
    midpssh)
        export LANG=en_US.ISO-8859-1 # etc...
        ;;
    *)
        export LANG=en_US.UTF-8 # ditto
        ;;
esac

You can also use this to do things like setting $MANWIDTH to a smaller number, changing $EDITOR from vim to vi, etc.

If you start a new screen session from MidpSSH, remember to pass it the -U option if the locale inside your windows will be UTF-8.

 
terminal-emulation.txt · Last modified: 2008/05/16 10:36 by lentinj
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki