delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/10/12:31:23

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_83,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4A2FDA59.9040502@gmail.com>
References: <announce DOT 20090608204726 DOT GY25832 AT calimero DOT vinschen DOT de> <4A2FDA59 DOT 9040502 AT gmail DOT com>
Date: Wed, 10 Jun 2009 17:31:01 +0100
Message-ID: <416096c60906100931t894945as8b353b0e88df564@mail.gmail.com>
Subject: Re: [ANNOUNCEMENT] [1.7] Updated: cygwin-1.7.0-49
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

2009/6/10 Dave Korn:
> Corinna Vinschen wrote:
>
>> What's new in contrast to 1.7.0-48
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>
>> - When running Cygwin applications in the Windows console window, the
>> =C2=A0 Backspace key now returns ASCII DEL (^?, \177) instead of ASCII BS
>> =C2=A0 (^H, \008). =C2=A0The Control-Backspace key now returns ESC-DEL (=
^[^?,
>> =C2=A0 \033\177) or \377, dependent on the meta mode set by the setmetam=
ode
>> =C2=A0 utility, rather than DEL. =C2=A0Control-Space now returns ASCII N=
UL.
>> =C2=A0 These changes should running emacs in a console window support be=
tter
>> =C2=A0 and improve compatibility with the Linux Console and xterm.
>
> =C2=A0This has some unexpected results for me. =C2=A0Starting up a shell =
(DOS console,
> notty) everything behaves as before. =C2=A0After running "stty sane", the=
 backspace
> key now starts printing ^? symbols instead of backspacing.

The rtermios default setting will need to change accordingly,
either by changing the definition of CERASE in include/sys/termios.h:

-#define CERASE CTRL('H')
+#define CERASE CDEL

Or by changing the initialisation in fhandler_termios.c:

-      tc->ti.c_cc[VERASE]      =3D CERASE;
+      tc->ti.c_cc[VERASE]      =3D CDEL;

The cygwin section in /etc/termcap doesn't have a kb entry, so luckily
no change needed there.

terminfo has an entry for backspace though:

$ tput -T cygwin kbs | cat -v
^H

So this has to to change as well:

+++ terminfo.src        2009-05-30 07:50:44.893933600 +0100
@@ -5221,7 +5221,7 @@
-       kbs=3D^H, kcub1=3D\E[D, kcud1=3D\E[B, kcuf1=3D\E[C, kcuu1=3D\E[A,
+       kbs=3D^?, kcub1=3D\E[D, kcud1=3D\E[B, kcuf1=3D\E[C, kcuu1=3D\E[A,

And then there are rxvt and xterm and their termcap and terminfo
entries as well ...

Andy

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

- Raw text -


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