delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/27/09:59:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=2.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,SPF_SOFTFAIL,TW_MR,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-version: 1.0
Date: Thu, 27 May 2010 17:55:44 +0400
From: Andrei Dmitriev <andrei-dmitriev AT yandex DOT ru>
Subject: Re: cygwin : bash doesn't recognize BackSpace
In-reply-to: <4BFE6601.5000801@cs.umass.edu>
To: cygwin AT cygwin DOT com
Message-id: <4BFE79E0.2020605@yandex.ru>
References: <4BFE4DF6 DOT 4080302 AT yandex DOT ru> <4BFE6601 DOT 5000801 AT cs DOT umass DOT edu>
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
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

Eliot Moss wrote:
> On 5/27/2010 6:48 AM, Andrei Dmitriev wrote:
>> ** Hello,
>>
>> after I installed the cygwin on May 19 the bash console don't recognize
>> *********BACKSPACE***** and continue to follow to the right each time I
>> press BACKSPACE.
>> Although, seem it actually erases the chars from the left (ENTER says
>> nothing - so I concluded the command is empty).
>
> Just as under Unix, you probably need to use stty to set things the
> way you want them.  stty -a will print all the settings, and man stty
> describes them.  
I see it in:
bash-3.2$ stty -a
speed 38400 baud; rows 75; columns 160; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; 
eol2 = <undef>; swtch = ^Z; start = ^Q; stop = ^S; susp = ^Z; rprnt = 
^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon 
-ixoff -iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 
vt0 ff0
isig icanon iexten echo -echoe -echok -echonl -noflsh -tostop -echoctl 
-echoke

Nothing really changes if I do "stty erase 0x07" or "stty erase ^?"
> You certainly want icanon.  My settings also show
> erase ^? .  Another place to look is .inputrc for bash.  
Hm, I don't have one.
> Also,
> whatever terminal you're using (mintty? xterm?) can no doubt get
> involved.
Don't see any difference between if I run cmd.exe, far.exe or cygwin 
console directly from the c:/cygwin/ and then run bash.

Any other ideas? :(

Thanks,
  Andrei


>
> -- Eliot Moss


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