This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygwin : bash doesn't recognize BackSpace
- From: "Larry Hall \(Cygwin\)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 26 Sep 2010 21:36:42 -0400
- Subject: Re: cygwin : bash doesn't recognize BackSpace
- References: <4BFE4DF6.4080302@yandex.ru> <4BFE5B77.9050005@gmail.com> <4BFE7881.4050306@yandex.ru> <20100527140301.GC21583@ednor.casa.cgf.cx> <OFB3F5231E.AB378878-ON85257730.004DDAF1-85257730.004DEAD8@lnotes-gw.ent.nwie.net> <4BFE9CE8.2060504@cygwin.com> <loom.20100926T152528-213@post.gmane.org>
- Reply-to: cygwin at cygwin dot com
On 9/26/2010 9:30 AM, MikeS wrote:
Larry Hall (Cygwin<reply-to-list-only-lh<at> cygwin.com> writes:
On 5/27/2010 10:11 AM, RISINGP1<at> 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<andy.koppe<at> 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