From owner-freebsd-questions Tue Sep 18 20:48:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id E9AB537B40F for ; Tue, 18 Sep 2001 20:48:15 -0700 (PDT) Received: from hades.hell.gr (patr530-b113.otenet.gr [195.167.121.241]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f8J3mBH26253; Wed, 19 Sep 2001 06:48:11 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f8J3SmI04230; Wed, 19 Sep 2001 06:28:48 +0300 (EEST) (envelope-from charon@labs.gr) Date: Wed, 19 Sep 2001 06:28:48 +0300 From: Giorgos Keramidas To: Wayne Cuddy Cc: Norbert Koch , freebsd-questions@FreeBSD.ORG Subject: Re: backspace does not delete previous character Message-ID: <20010919062848.A4070@hades.hell.gr> References: <20010916182025.A16926@crb-web.com> <20010916202806.V5270-100000@cx175057-a.ocnsd1.sdca.home.com> <20010917000314.A18070@crb-web.com> <20010917110536.B19771@crb-web.com> <20010918123624.C24638@crb-web.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: <20010918123624.C24638@crb-web.com> User-Agent: Mutt/1.3.22.1i X-GPG-Fingerprint: DB89 935F 85FC B995 91CA 4AEA 9F1D F31A C6B2 F5FC X-URL: http://labs.gr/~charon/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Wayne Cuddy 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