From owner-freebsd-questions Fri Oct 25 16:10: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6115F37B401 for ; Fri, 25 Oct 2002 16:10:01 -0700 (PDT) Received: from nic.upatras.gr (nic.upatras.gr [150.140.129.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 0107B43EC5 for ; Fri, 25 Oct 2002 16:09:42 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 28072 invoked from network); 25 Oct 2002 23:02:33 -0000 Received: from upnet-dialinpool-3.upnet.gr (HELO hades.hell.gr) (root@150.140.128.251) by nic.upatras.gr with SMTP; 25 Oct 2002 23:02:33 -0000 Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.6/8.12.6) with ESMTP id g9PN9qLg020079; Sat, 26 Oct 2002 02:09:52 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by hades.hell.gr (8.12.6/8.12.6/Submit) id g9PN9qKA020078; Sat, 26 Oct 2002 02:09:52 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 26 Oct 2002 02:09:51 +0300 From: Giorgos Keramidas To: Michael Morris Cc: "Gary W. Swearingen" , freebsd-questions@FreeBSD.ORG Subject: Re: backspace and del keys Message-ID: <20021025230951.GA12379@hades.hell.gr> References: <1035470680.2126.16.camel@dilbert.christsgarden.org> <002001c27b95$f7f705e0$f7808c96@LocalHost> <1035500526.273.33.camel@dilbert.christsgarden.org> <20021025020559.GA19906@hades.hell.gr> <1035558058.204.11.camel@dilbert.christsgarden.org> <20021025163633.GD673@hades.hell.gr> <1035564527.685.22.camel@dilbert.christsgarden.org> <1035584433.205.33.camel@dilbert.christsgarden.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1035584433.205.33.camel@dilbert.christsgarden.org> 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 On 2002-10-25 15:20, Michael Morris wrote: > On Fri, 2002-10-25 at 15:18, Gary W. Swearingen wrote: > > Michael Morris writes: > > > > > When I run tput kbs, nothing is displayed. > > > > When I run > > echo "123$(tput kbs)456" > > I get > > 12456 > > apparently because "tput kbs" puts out some kind of backspace to > > the shell. > > Yes, tput kbs returns the Backspace key for that terminal definition in > termcap. Apparently not. In my screen(1) window, I can see with stty -a that erase is set to ^H. My backspace key sends ^H and works fine as a ``backspace''. The delete key sends ^[[3~. The tput commands only prints an ASCII 127 (DEL) character: keramida@hades[02:07]/home/keramida$ tput kbs | hd 00000000 7f |.| 00000001 I'm not sure if that's correct, or a bug. But it certainly won't match your backspace key. At worst, it will match your keyboard's DEL key, and will create the impression that backspace and DEL keys work "backwards". Giorgos. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message