Date: Wed, 19 Sep 2001 06:28:48 +0300 From: Giorgos Keramidas <charon@labs.gr> To: Wayne Cuddy <wcuddy@crb-web.com> Cc: Norbert Koch <nk@LF.net>, freebsd-questions@FreeBSD.ORG Subject: Re: backspace does not delete previous character Message-ID: <20010919062848.A4070@hades.hell.gr> In-Reply-To: <20010918123624.C24638@crb-web.com> References: <20010916182025.A16926@crb-web.com> <20010916202806.V5270-100000@cx175057-a.ocnsd1.sdca.home.com> <20010917000314.A18070@crb-web.com> <vzk7yybccs.fsf@lamia.LF.net> <20010917110536.B19771@crb-web.com> <vz7kux97vh.fsf@lamia.LF.net> <20010918123624.C24638@crb-web.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Wayne Cuddy <wcuddy@crb-web.com> wrote: >=20 > If I login to the console on Linux everything works fine and I need not to > adjust the 'stty erase' parameters to use backspace in vim. If I login t= o the > FreeBSD console and run vim everything works fine. However if I login to= the > FreeBSD console and telnet to the Linux box and run vim backspace does not > work unless I adjust stty settings. I don't believe the `uname` solution > works in this situation because on Linux it will always return Linux. Wh= at I > need to be able to do is detect that I am logging into Linux from FreeBSD= in > order to setup 'stty erase' correctly. This is most likely because FreeBSD's cons25 terminal is unknown for Linux, and telnet has passed the TERM environment variable to the ``remote'' Linux terminal. =46rom the new-users article at www.freebsd.org, I quote: A useful command if you log in from a remote location and can't run a program because the terminal isn't capable is ``setenv TERM vt100''. Of course this assumes that the remote shell is also csh and/or tcsh, so in linux (whose users tend to have a preference for bash), you might want to change ``setenv'' to: $ TERM=3Dvt100 ; export TERM -giorgos --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE7qBDvnx3zGsay9fwRAgNkAKC4gUCtJbS9tc7fdAk1PWdDcI9o4ACfQuaY kVQlkpJ0oK635utMN5tT4gE= =KHZd -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010919062848.A4070>