This is the mail archive of the
mailing list for the Cygwin project.
Re: backspace does not work correctly on cygwin command prompt, its adding space in front of the character.
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 30 Apr 2010 16:43:03 +0100
- Subject: Re: backspace does not work correctly on cygwin command prompt, its adding space in front of the character.
- References: <firstname.lastname@example.org>
On 30/04/2010 08:14, Sameer khan wrote:
> I installed cygwin 1.7.5-1. on my windows-xp desktop.
> On cygwin command prompt, backspace is not working.
> I tried following , but none of these worked
> stty erase ^H
> stty erase ^h
> stty erase ^?
> backspace either adds extra space in front or adds ^? in the front but its not deleting characters from the screen.
Ah, take a look at this from your cygcheck output:
> TERMCAP = 'D:\PROGRA~1\MKSTOO~1\etc\termcap'
> TERMINFO = 'D:\PROGRA~1\MKSTOO~1\usr\lib\terminfo'
You have MKS tools installed, and these environment variable settings mean
something to both MKS and Cygwin. Cygwin shells won't work with MKS
terminfos! I don't know if Cygwin uses termcap, but you probably don't want
that set either. Other environment variables that you have pointing at MKS
are MAN_TXT_INDEX, SHELL, MAN_CHM_INDEX, ROOTDIR and NUTCROOT. I don't know
what all of those mean, but having SHELL point at the MKS shell will mess
things up if you try and run 'make'.
I'd advise against having MKS and Cygwin both in the PATH at the same time,
it could easily get confusing, but the main part of your problem will be
solved by getting rid of those environment settings. You could remove them
from the environment and use a batch file to set them and launch an MKS shell
for when you want to use MKS, or you could unset them in your Cygwin.bat, or
perhaps even in /etc/profile (but that might be too late if they've already
taken effect, since that only gets read after the shell is running).
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple