From owner-freebsd-questions Wed Jul 5 12:19:32 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hellasnet.gr (mail.hellasnet.gr [212.54.192.3]) by hub.freebsd.org (Postfix) with ESMTP id 028E337B712 for ; Wed, 5 Jul 2000 12:19:27 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (ppp3.patr.hellasnet.gr [212.54.197.18]) by mail.hellasnet.gr (8.9.1/8.9.1) with ESMTP id VAA17123; Wed, 5 Jul 2000 21:18:23 +0200 (GMT) Received: (from charon@localhost) by hades.hell.gr (8.10.2/8.10.2) id e65HUHF03621; Wed, 5 Jul 2000 20:30:17 +0300 (EEST) Date: Wed, 5 Jul 2000 20:30:16 +0300 From: Giorgos Keramidas To: Dan Fairs Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Backspace and editors Message-ID: <20000705203016.A3304@hades.hell.gr> References: <20000704231923.23942.qmail@web3203.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000704231923.23942.qmail@web3203.mail.yahoo.com>; from danfairs@yahoo.co.uk on Wed, Jul 05, 2000 at 12:19:23AM +0100 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jul 05, 2000 at 12:19:23AM +0100, Dan Fairs wrote: > > Just a very quick question. When I telnet from a Linux xterm onto > my FreeBSD box, backspace behaves strangely. It has the expected > performance on the command line, but performs the usual function of > the 'delete' key under windows when used within an editor (ee, pico, > vi). How can this be fixed? It doesn't happen when I telnet in from a > 'linux' term ie. not from within X. Depending on what your xterm sends when "backspace" is pressed, you might have to use stty to change the terminal's opinion about the 'erase' key. For instance in my console, I can see: % stty speed 115200 baud; lflags: echoe echok echoke echoctl pendin oflags: -oxtabs cflags: cs8 -parenb erase ^H It shows that I changed the 'erase' key to ^H, to make my screen(1) happier than before. When I have such problems with terminal's erase key being incorrectly set, I usually do: % cat [here press your backspace key] If you see something like: % cat ^H then you know what to tell stty to use as 'erase' in: % stty erase '^H' Please note that in 'stty erase ^H' the caret (^) character is just that, a separate character from 'H' that follows it; i.e. you don't just press the backspace key there. Ciao. -- "The sun is the same in a relative way, but you're older. Shorter of breath, and one day closer to death." > Pink Floyd, TIME (Dark Side of the Moon) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message