Mail Archives: cygwin/2010/04/30/11:24:13
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_YG,T_TO_NO_BRKTS_FREEMAIL
|
X-Spam-Check-By: | sourceware.org
|
Message-ID: | <4BDAFA87.8000009@gmail.com>
|
Date: | Fri, 30 Apr 2010 16:43:03 +0100
|
From: | Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
|
User-Agent: | Thunderbird 2.0.0.17 (Windows/20080914)
|
MIME-Version: | 1.0
|
To: | cygwin AT cygwin DOT com
|
Subject: | Re: backspace does not work correctly on cygwin command prompt, its adding space in front of the character.
|
References: | <633845 DOT 11531 DOT qm AT web8504 DOT mail DOT in DOT yahoo DOT com>
|
In-Reply-To: | <633845.11531.qm@web8504.mail.in.yahoo.com>
|
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm
|
List-Id: | <cygwin.cygwin.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
|
On 30/04/2010 08:14, Sameer khan wrote:
> Hi,
>
> 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).
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
- Raw text -