Date: Sat, 26 Oct 2002 02:09:51 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Michael Morris <memorris@christsgarden.org> Cc: "Gary W. Swearingen" <swear@attbi.com>, freebsd-questions@FreeBSD.ORG Subject: Re: backspace and del keys Message-ID: <20021025230951.GA12379@hades.hell.gr> In-Reply-To: <1035584433.205.33.camel@dilbert.christsgarden.org> 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> <k6k7k6w4b6.7k6@localhost.localdomain> <1035584433.205.33.camel@dilbert.christsgarden.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-10-25 15:20, Michael Morris <memorris@christsgarden.org> wrote: > On Fri, 2002-10-25 at 15:18, Gary W. Swearingen wrote: > > Michael Morris <memorris@christsgarden.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021025230951.GA12379>