delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/12/09/16:05:34

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <385019E2.735FE2AE@veritas.com>
Date: Thu, 09 Dec 1999 13:06:42 -0800
From: Bob McGowan <Robert DOT McGowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Garrett Sylvester <gsylvester AT gdats DOT com>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Problem backspacing with stdin running bash in rxvt window
References: <199912092041 DOT PAA08366 AT stingray DOT gdats DOT com>

Garrett Sylvester wrote:
> 
> CIRCUMSTANCES:
>   Reading from stdin under bash in rxvt window. Win95 OS. Cygwin 20.1. rxvt version that is pointed
> out on CygWin site. The call to rxvt is:
>                    rxvt -fn "-*-Courier-medium-r-*-13-*" -sl 2000 -e bash.
> PROBLEM:
>    When I write simple C codes that require input from the keyboard ("Enter your nose diameter in
> furlongs") I must type the input exactly right and cannot backspace to correct typing errors
> without getting unintended behavior in the C code. A little experimenting confirms the obvious
> suspicion, namely that the backspace character is just interpreted as part of the intended input.
> This doesn' t happen in the regular DOS-box version of CygWin bash. Is there some fix for this
> too-literal interpretation of the input, such as a change in some environmental variable or setting
> some options in the call opening the rxvt window??

Gerrett,

One possibility comes to mind.  Try running 'stty -a' in the rxvt/bash
window.  Check the output, second line, and see what is defined for
"erase".  I am using xterm, not rxvt, and the output I had showed "erase
= ^?" (that is, the DEL key was setup as the erase character).  It is
also possible (unlikely though, I think) that the definition will say
"<undef>" instead.  If it has some character indicated, try running your
program and use the defined character to erase the input (as a test).

Change the value by typing:
	stty erase '^h' # literally, single quote, carat, letter-h, single
quote.


> Thanks,
> 

Your welcome.  I hope this helps.

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan AT veritas DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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