Left/right arrow and backspace translation confusion

Ben Jencks ben-freebsd-current at bjencks.net
Thu Jul 14 18:58:06 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Doug Lee <dgl at dlee.org> writes:

> This one is making me feel dumb...I've been using FreeBSD for at least
> six years but I can't seem to figure this out...
>
> I have two FreeBSD systems running 4.10/4.11 (these problems have
> plagued me through several versions though).  On one system, arrows
> and backspace work as expected, but on the other, left/right arrows in
> vi cause havock (extra characters and a switch from command to insert
> mode), and backspace in Lynx, Mutt, etc., backs up but leaves
> characters intact instead of clearing them.  I have verified that the
> following are identical on both systems:
>
> - termcap (/etc symlink and /usr/share/misc/termcap and termcap.db).
> - ~/.exrc.
> - stty settings at run time and as set in ~/.login (I use tcsh).
> - .screenrc (I also use screen 4.00.02 on both systems).
> - /usr/local/etc/screenrc
>
> I have also tried connecting to each system directly, via a serial
> cable and via a Telnet client; and also connecting to each system
> through an ssh session on the other one, inside a Screen session.
> The results are always the same:  On one system, keys work as
> expected, but on the other, they always work in the same wrong way.

Did you start the screen session from within the local/telnet/ssh/serial
connection you're attempting to use it from? I've found that if you
start a screen session with one keyboard/OS/keymap/method of connection,
and attempt to use it from another, it screws up the "special" keys.
- -- 
Ben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFC1rWypt3yYclAKVsRAoApAJwMQ25E500MVlHeisT54TGY2dMvFgCfZNYo
WCJprkJoyagshZcaZxJTqIE=
=kFKu
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list