Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2002 11:22:26 +0100
From:      rene@xs4all.nl
To:        questions@freebsd.org
Cc:        djed@chilli.net.au, anne@ibb.net
Subject:   console 'spcial keys' interpretation. WAS: re: screen package interpreting backspace as ~
Message-ID:  <20020105112226.L15007@xs4all.nl>

next in thread | raw e-mail | index | archive | help
> ----- Original Message -----
> From: <rene@xs4all.nl>
> To: <questions@FreeBSD.ORG>
> Sent: Wednesday, September 05, 2001 5:59 PM
> Subject: screen package interpreting backspace as ~
>
>
> > Hi. I'm running screen version 3.09.08 (FAU) 1-Sep-00, and would like to
> > teach it to interpret the backspace key as being backspace, instead of
> > '~'

I'm using:
$ bash --version
GNU bash, version 2.05.0(1)-release (i386--freebsd4.4)

I've looked at several possible solutions to this; none work so far.

1=
==

On Thu, Sep 06, 2001 at 12:16:56PM +0200, Christoph Sold wrote:
> stty erase <Ctl>-V <Backspace>
>

let's try:
BASH:
 $ stty erase <Ctl>-V <Backspace>
bash: syntax error near unexpected token `<Backspace>'

SCREEN:
 $ stty erase <Ctl>-V <Backspace
bash: Ctl: No such file or directory

2=
==

So that tip I can't get to work... :(
Searched google.com for some time, got dazed by the complexity of unix
terminals and finally found
http://www.ibb.net/~anne/keyboard/keyboard.html

But those tips listed there do not work 100% correct for Screen.
instead, Screen now interprets <backspace> as <delete>, which might be
considered 'better', but I'm still not happy! ;-)

I think this must be because somehow my bash config files aren't being read
in when screen is started; at least my aliases are not available....

somehow, it does seem to use /etc/inputrc though (could be because the parent
Bash process used it).. 
<delete> (stty erase2) is now interpreted correctly, and <backspace> (stty 
erase) has become <delete>.

Anne says that 
  $ bind "\C-?": backward-delete-char
should fix this type of problem on the fly, but alas; screen stays stubborn.

I could use some more tips... ;-)

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?20020105112226.L15007>