delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/11/10:47:52

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20100411122809.GO28908@calimero.vinschen.de>
References: <u2v49e721a81004081305q61e00044hba10b82e6900aa3d AT mail DOT gmail DOT com> <m2n416096c61004100231je0fea482s7a9a7d2e82cd2792 AT mail DOT gmail DOT com> <20100410140811 DOT GA8593 AT ednor DOT casa DOT cgf DOT cx> <p2k416096c61004100900j2d3b3567gdd068feb17547ec3 AT mail DOT gmail DOT com> <20100410161626 DOT GA1904 AT ednor DOT casa DOT cgf DOT cx> <20100410173607 DOT GA3986 AT ednor DOT casa DOT cgf DOT cx> <20100410181700 DOT GA7321 AT ednor DOT casa DOT cgf DOT cx> <i2t416096c61004101409ka5c18517obfc3a09e284a0e98 AT mail DOT gmail DOT com> <20100411093305 DOT GN28908 AT calimero DOT vinschen DOT de> <20100411122809 DOT GO28908 AT calimero DOT vinschen DOT de>
Date: Sun, 11 Apr 2010 15:47:32 +0100
Message-ID: <j2l416096c61004110747g2344f72dma3202010dc763eb1@mail.gmail.com>
Subject: Re: 1.7.3: Backspace key not working in GNU screen.
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Corinna Vinschen:
> I think I see what you mean now. =C2=A0The c_cc[VERASE] value is the one
> which is expected for the VERASE functionality (unless it's set to
> 0 =3D=3D _POSIX_VDISABLE), but it has nothing to do with the actual setti=
ng
> of the backspace key in the terminal. =C2=A0So, actually the key value sh=
ould
> not be stored in c_cc[VERASE] at all, and it should not be possible to
> set the value returned by the backspace key via tcsetattr.

True, because someone might want to use a completely different key for
VERASE. The case I had in mind though was the user setting 'stty erase
^H', to get ^H as the backspace keycode, but then finding that it
would send ^? again when in screen, even though 'stty -a' would still
show ^H. Anyways ...


> So, what we really need to implement is what you proposed. =C2=A0I prepar=
ed
> a patch, see below. =C2=A0It seems to work nicely and you can easily swit=
ch
> the backspace character now via the DECBKM escape codes.

Nice. The patch looks good to me, and I agree DECBKM is a better
solution than a CYGWIN option, because it's standard and because it
can be used in remote scripts.

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019