delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/13/13:38:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Fri, 13 May 2005 19:37:48 +0200 (MET DST)
From: Angelo Graziosi <Angelo DOT Graziosi AT roma1 DOT infn DOT it>
To: Eric Blake <ebb9 AT byu DOT net>
cc: pechtcha AT cs DOT nyu DOT edu, cygwin AT cygwin DOT com
Subject: Re: Strange-Dangerous behaviour in Cygwin
In-Reply-To: <4284A307.5000304@byu.net>
Message-ID: <Pine.OSF.4.21.0505131843250.31676-100000@ax0rm1.roma1.infn.it>
MIME-Version: 1.0
X-AntiVirus: checked by Vexira Milter 1.0.6; VAE 6.30.0.2; VDF 6.30.0.177

I have never touched /etc/profile which is a copy of
/etc/defaults/etc/profile dated Dec  7 20:53 and I think it belongs to
3.2-1 version of base-file which is dated Dec  7 19:52 (I upgrade Cygwin
continuously).

I want to underline that until some weeks ago the problems with BKSPACE
were absent.

I repeat again that the BKSPACE problems are present only when some
command ask for something (like rm -i etc., or ssh when it ask for
password) and only in standard
bash-shell and xterm (that is started with startxwin.bat). Using RXVT
(e.g. rxvt -e /bin/bash --login) does not give any problem.

Now I have discovered that also my applications show those problems.
I have prepared a simple program:


#include<iostream>

using namespace std;

int main()
{
   int i;

   cout << "i : ";
   cin >> i;

   cout << i << endl;

   return 0;
}

$ ./foo.exe
i : 12345[backspace]6<return>
12345

(also the fortran, g77-g95, versions give the some results)

typing BKSPACE move the cursor on "5" without deleting it, typing "6"
overwrites "5" (12346), but the value that it reads is not 12346 but
12345, as the output says! In this way one cannot correct any more.
In /etc/profile erase is set to ^? and if I type (but only in xterm not in
standard bash shell) ^? i.e. [ctrl]? instead of BKSPACE it deletes the
"5" and writing "6" it reads the corect value 12346! 

Now I have realized that with "stty erase ^H" I can resolve, but it does
not look an elegant solution to me.

Moreever
Why until some weeks ago all worked fine?
What is changed?
Is it possible that others application have changed some keys in
registry? Which?

Unfortunately I do not remember when this  "transition" arose.

I remember you that I have found those BKSpace problems also reinstalling
Cygwin from scratch with only the BASE packages installed.

Thank you (and I am afraid for annoying you).
angelo.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019