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