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: References: 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 To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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