X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk Message-ID: <4C9FF52A.1020409@cygwin.com> Date: Sun, 26 Sep 2010 21:36:42 -0400 From: "Larry Hall \(Cygwin\)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: cygwin : bash doesn't recognize BackSpace References: <4BFE4DF6 DOT 4080302 AT yandex DOT ru> <4BFE5B77 DOT 9050005 AT gmail DOT com> <4BFE7881 DOT 4050306 AT yandex DOT ru> <20100527140301 DOT GC21583 AT ednor DOT casa DOT cgf DOT cx> <4BFE9CE8 DOT 2060504 AT cygwin DOT com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 On 9/26/2010 9:30 AM, MikeS wrote: > Larry Hall (Cygwin cygwin.com> writes: > >> >> On 5/27/2010 10:11 AM, RISINGP1 nationwide.com wrote: >>> I was having trouble with the backspace key, but it was with pdksh, so I >>> don't know if this will work for you, but it is worth a try... >>> >>> Andy Koppe gmail.com> wrote: >>> >>>> From the cygwin-1.7.5 release announcement: >>> >>> - Support DEC Backarrow Key Mode escape sequences (ESC [ ? 67 h, >>> ESC [ ? 67 l) in Windows console. >>> >>> (The first one switches to ^H. You'll need to set stty erase accordingly.) >> >> That's a different issue. The OP's problem is a conflict with MKS, >> particularly with environment variables both MKS and Cygwin use to define a >> working terminal setting. >> > > I have both MKS and cygwin. The following command: export TERM=cygwin > fixed backspace issue. > Before: > $ env |grep TERM > TERM=nutc > TERMCAP=C:\PROGRA~1\MKSTOO~1\etc\termcap > TERMINFO=C:\PROGRA~1\MKSTOO~1\usr\lib\terminfo > > After: > $ env |grep TERM > TERM=cygwin > TERMCAP=C:\PROGRA~1\MKSTOO~1\etc\termcap > TERMINFO=C:\PROGRA~1\MKSTOO~1\usr\lib\terminfo Right. Cygwin doesn't understand "nutc" as a terminal type (just as MKS doesn't know "cygwin"). Setting the terminal type correctly for Cygwin makes all the difference. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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