Re: cygwin : bash doesn't recognize BackSpace

2010-05-27 Thread Andrei Dmitriev

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 = ; 
eol2 = ; 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

2010-05-27 Thread Andrei Dmitriev


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



cygwin : bash doesn't recognize BackSpace

2010-05-27 Thread Andrei Dmitriev

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