X-Recipient: archive-cygwin@delorie.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@mail.gmail.com> 	 <m2n416096c61004100231je0fea482s7a9a7d2e82cd2792@mail.gmail.com> 	 <20100410140811.GA8593@ednor.casa.cgf.cx> 	 <p2k416096c61004100900j2d3b3567gdd068feb17547ec3@mail.gmail.com> 	 <20100410161626.GA1904@ednor.casa.cgf.cx> 	 <20100410173607.GA3986@ednor.casa.cgf.cx> 	 <20100410181700.GA7321@ednor.casa.cgf.cx> 	 <i2t416096c61004101409ka5c18517obfc3a09e284a0e98@mail.gmail.com> 	 <20100411093305.GN28908@calimero.vinschen.de> 	 <20100411122809.GO28908@calimero.vinschen.de>
Date: Sun, 11 Apr 2010 15:47:32 +0100
Received: by 10.239.193.6 with SMTP id g6mr218085hbi.212.1270997252784; Sun,  	11 Apr 2010 07:47:32 -0700 (PDT)
Message-ID: <j2l416096c61004110747g2344f72dma3202010dc763eb1@mail.gmail.com>
Subject: Re: 1.7.3: Backspace key not working in GNU screen.
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

