putty/xterm compatibility