tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: junk characters from movement keys in vi in xterm via ssh

> I have had this problem for years. Using different xterms, ssh, and NetBSD 
> versions.
> When I move in vi in an xterm over ssh connections over wireless or other 
> networks, I frequently get junk inserted into my document.

Look at the 'vi' option 'escapetime'.

The 'problem' happens because the keyboard characters don't get sent
in one TCP message - and the delay within vi/curses is shorter than
the nagle delay (or TCP ack time) for sending the subsequent bytes.


David Laight:

Home | Main Index | Thread Index | Old Index