Re: cygwin : bash doesn't recognize BackSpace
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 Koppeandy.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 -- 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
Re: cygwin : bash doesn't recognize BackSpace
On 9/26/2010 9:30 AM, MikeS wrote: Larry Hall (Cygwinreply-to-list-only-lhat cygwin.com writes: On 5/27/2010 10:11 AM, RISINGP1at 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 Koppeandy.koppeat 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
cygwin : bash doesn't recognize BackSpace
** 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). Thanks, Andrei ** Cygwin Configuration Diagnostics Current System Time: Thu May 27 14:32:43 2010 Windows XP Professional Ver 5.1 Build 2600 Service Pack 2 Path: D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\ D:\Program Files\CollabNet Subversion Client c:\ant\bin e:\bin e:\devtools\ D:\WINDOWS\system32 D:\WINDOWS D:\WINDOWS\System32\Wbem D:\Program Files\Java\jdk1.6.0_13\bin\ D:\Program Files\Common Files\Microsoft Shared\VSA\7.1\VsaEnv D:\Program Files\NVIDIA Corporation\Cg\bin c:\cygwin\bin D:\PROGRA~1\MKSTOO~1\bin D:\PROGRA~1\MKSTOO~1\bin\X11 D:\PROGRA~1\MKSTOO~1\mksnt d:\Program Files\TortoiseHg Output from c:\cygwin\bin\id.exe UID: 1003(dav) GID: 513(None) 513(None) 0(root) 544(Administrators) 545(Users) SysDir: D:\WINDOWS\system32 WinDir: D:\WINDOWS HOME = 'D:\Documents and Settings\dav' Path = 'D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\;D:\Program Files\CollabNet Subversion Client;c:\ant\bin;e:\bin;e:\devtools\;D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS\System32\Wbem;D:\Program Files\Java\jdk1.6.0_13\bin\;D:\Program Files\Common Files\Microsoft Shared\VSA\7.1\VsaEnv;D:\Program Files\NVIDIA Corporation\Cg\bin;c:\cygwin\bin;D:\PROGRA~1\MKSTOO~1\bin;D:\PROGRA~1\MKSTOO~1\bin\X11;D:\PROGRA~1\MKSTOO~1\mksnt;d:\Program Files\TortoiseHg' ALLUSERSPROFILE = 'D:\Documents and Settings\All Users.WINDOWS' ANT_HOME = 'c:\ant' APPDATA = 'D:\Documents and Settings\dav\Application Data' CG_BIN_PATH = 'D:\Program Files\NVIDIA Corporation\Cg\bin' CG_INC_PATH = 'D:\Program Files\NVIDIA Corporation\Cg\include' CG_LIB_PATH = 'D:\Program Files\NVIDIA Corporation\Cg\lib' CommonProgramFiles = 'D:\Program Files\Common Files' COMPUTERNAME = 'FERRUM-DAV' ComSpec = 'D:\WINDOWS\system32\cmd.exe' DISPLAY = ':0.0' DXSDK_DIR = 'D:\Program Files\Microsoft DirectX SDK (August 2009)\' FARHOME = 'D:\Program Files\Far' FARLANG = 'English' FP_NO_HOST_CHECK = 'NO' HOMEDRIVE = 'D:' HOMEPATH = '\Documents and Settings\dav' INCLUDE = 'D:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\' LIB = 'D:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\' LOGONSERVER = '\\FERRUM-DAV' MAN_CHM_INDEX = 'D:/PROGRA~1/MKSTOO~1/etc/chm/tkutil.idx;D:/PROGRA~1/MKSTOO~1/etc/chm/tkapi.idx;D:/PROGRA~1/MKSTOO~1/etc/chm/tcltk.idx;D:/PROGRA~1/MKSTOO~1/etc/chm/tkcurses.idx' MAN_HTM_PATHS = 'D:/PROGRA~1/MKSTOO~1/etc/htm/perl;D:/PROGRA~1/MKSTOO~1/etc/htm/perl/pod;D:/PROGRA~1/MKSTOO~1/etc/htm/perl/ext;D:/PROGRA~1/MKSTOO~1/etc/htm/perl/lib' MAN_TXT_INDEX = 'D:/PROGRA~1/MKSTOO~1/etc/tkutil.idx;D:/PROGRA~1/MKSTOO~1/etc/tkapi.idx;D:/PROGRA~1/MKSTOO~1/etc/tcltk.idx;D:/PROGRA~1/MKSTOO~1/etc/tkcurses.idx' NUMBER_OF_PROCESSORS = '1' NUTCROOT = 'D:\PROGRA~1\MKSTOO~1' OS = 'Windows_NT' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.sh;.ksh;.csh;.sed;.awk;.pl' PROCESSOR_ARCHITECTURE = 'x86' PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 2 Stepping 7, GenuineIntel' PROCESSOR_LEVEL = '15' PROCESSOR_REVISION = '0207' ProgramFiles = 'D:\Program Files' PROMPT = '$P$G' ROOTDIR = 'D:/PROGRA~1/MKSTOO~1' SESSIONNAME = 'Console' SHELL = 'D:/PROGRA~1/MKSTOO~1/mksnt/sh.exe' SystemDrive = 'D:' SystemRoot = 'D:\WINDOWS' TEMP = 'D:\DOCUME~1\dav\LOCALS~1\Temp' TERM = 'nutc' TERMCAP = 'D:\PROGRA~1\MKSTOO~1\etc\termcap' TERMINFO = 'D:\PROGRA~1\MKSTOO~1\usr\lib\terminfo' TMP = 'D:\DOCUME~1\dav\LOCALS~1\Temp' TMPDIR = 'D:/DOCUME~1/dav/LOCALS~1/Temp' USERDOMAIN = 'FERRUM-DAV' USERNAME = 'dav' USERPROFILE = 'D:\Documents and Settings\dav' VS71COMNTOOLS = 'D:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\' windir = 'D:\WINDOWS' HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_CURRENT_USER\Software\Cygwin HKEY_CURRENT_USER\Software\Cygwin\Program Options HKEY_CURRENT_USER\Software\Cygwin\setup HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu2\Programs\Cygwin (default) = (unsupported type) HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = '/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = 'c:\cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = 'c:\cygwin/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = 'c:\cygwin/lib'
Re: cygwin : bash doesn't recognize BackSpace
On 27/05/2010 11:48, 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). MKS tools are interfering with Cygwin, because of these environment variable settings: TERM = 'nutc' TERMCAP = 'D:\PROGRA~1\MKSTOO~1\etc\termcap' TERMINFO = 'D:\PROGRA~1\MKSTOO~1\usr\lib\terminfo' You need to remove them from the environment, and should set your PATH so it doesn't have both Cygwin and MKS at the same time. cheers, DaveK -- 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
Re: cygwin : bash doesn't recognize BackSpace
Dave Korn wrote: On 27/05/2010 11:48, 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). MKS tools are interfering with Cygwin, because of these environment variable settings: TERM = 'nutc' TERMCAP = 'D:\PROGRA~1\MKSTOO~1\etc\termcap' TERMINFO = 'D:\PROGRA~1\MKSTOO~1\usr\lib\terminfo' You need to remove them from the environment, and should set your PATH so it doesn't have both Cygwin and MKS at the same time. Ok, I removed mks from my path but the problem persists. Thanks, Andrei cheers, DaveK -- 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 -- 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
Re: cygwin : bash doesn't recognize BackSpace
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
Re: cygwin : bash doesn't recognize BackSpace
On Thu, May 27, 2010 at 05:49:53PM +0400, Andrei Dmitriev wrote: Dave Korn wrote: On 27/05/2010 11:48, Andrei Dmitriev wrote: 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). MKS tools are interfering with Cygwin, because of these environment variable settings: TERM = 'nutc' TERMCAP = 'D:\PROGRA~1\MKSTOO~1\etc\termcap' TERMINFO = 'D:\PROGRA~1\MKSTOO~1\usr\lib\terminfo' You need to remove them from the environment, and should set your PATH so it doesn't have both Cygwin and MKS at the same time. Ok, I removed mks from my path but the problem persists. It sounds like you only did half of what you need to. You need to remove the other environment variables too. Setting TERM=nutc is obviously incorrect for cygwin, as is pointing to non-cygwin vesions of TERMCAP and TERMINFO. cgf -- 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
Re: cygwin : bash doesn't recognize BackSpace
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.ko...@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.) - Phil From: Christopher Faylor cgf-use-the-mailinglist-ple...@cygwin.com To: cygwin@cygwin.com Date: 05/27/2010 10:03 AM Subject: Re: cygwin : bash doesn't recognize BackSpace Sent by: cygwin-ow...@cygwin.com On Thu, May 27, 2010 at 05:49:53PM +0400, Andrei Dmitriev wrote: Dave Korn wrote: On 27/05/2010 11:48, Andrei Dmitriev wrote: 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). MKS tools are interfering with Cygwin, because of these environment variable settings: TERM = 'nutc' TERMCAP = 'D:\PROGRA~1\MKSTOO~1\etc\termcap' TERMINFO = 'D:\PROGRA~1\MKSTOO~1\usr\lib\terminfo' You need to remove them from the environment, and should set your PATH so it doesn't have both Cygwin and MKS at the same time. Ok, I removed mks from my path but the problem persists. It sounds like you only did half of what you need to. You need to remove the other environment variables too. Setting TERM=nutc is obviously incorrect for cygwin, as is pointing to non-cygwin vesions of TERMCAP and TERMINFO. cgf -- 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 -- 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
Re: cygwin : bash doesn't recognize BackSpace
On 5/27/2010 10:11 AM, risin...@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 Koppeandy.ko...@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. -- 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