delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/16/14:04:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <loom.20091016T193038-322@post.gmane.org>
References: <announce DOT 416096c60910121133u54b2cea7m2955e55d6c0d6564 AT mail DOT gmail DOT com> <loom DOT 20091016T193038-322 AT post DOT gmane DOT org>
Date: Fri, 16 Oct 2009 19:04:39 +0100
Message-ID: <416096c60910161104t1d5c1174oab298aeea800cdbf@mail.gmail.com>
Subject: Re: [ANNOUNCEMENT] Updated: mintty-0.5.1-1
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/10/16 Eric Backus:
> Unfortunately, cygwin's terminfo/termcap entries for XTERM say that the
> backspace key returns ^H. =C2=A0This can be seen by looking in /etc/termc=
ap for
> xterm, and finding the 'kb' property for that entry, or by running 'infoc=
mp
> xterm' and looking for the 'kbs' property.
>
> So, by default, mintty now does not match the terminfo/termcap entries. =
=C2=A0Is
> there any way to fix this? =C2=A0I hesitate to suggest changing the
> terminfo/termcap entries, since they should match the real xterm. =C2=A0B=
ut
> actually I don't run X11, so I don't know if the current terminfo/termcap
> really match xterm - the date on /etc/termcap at least is fairly old.

xterm does still send ^H, but I agree both xterm and its termcap entry
ought to be changed to match the new Cygwin 1.7 default and the Linux
world. I should have a look at how to do that.

Have you come across an application that stumbles over this? All the
one's I've tried seemed to go by the stty setting rather than the
termcap entry anyway.

The workaround is to stick the following somewhere in your startup files:

echo $'\e[?67h'
stty erase '^H'

The first line emits a 'DECBKM' sequence, which switches mintty back
to ^H mode, and the second line changes the pty setting accordingly.

Andy


ps: Oh gawd, how I hate this issue.

--
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