delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/29/15:42:18

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 29 Dec 2000 15:41:20 -0500
From: Ashok Vadekar <avadekar AT certicom DOT com>
To: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
Cc: cygwin AT cygwin DOT com
Subject: Re: shell loses "stty echo" state
Message-ID: <20001229154120.E9356@volta.certicom.com>
Reply-To: avadekar AT certicom DOT com
References: <2CC2CB3C95C3D311ABAC009027DCD77E16FE31 AT flyhalf DOT pactolus DOT com> <3A4CBE6F DOT 63963D62 AT yahoo DOT com> <20001229120323 DOT D9356 AT volta DOT certicom DOT com> <3A4CEE5C DOT 6477D014 AT ece DOT gatech DOT edu>
Mime-Version: 1.0
X-Mailer: Mutt 1.0i
In-Reply-To: <3A4CEE5C.6477D014@ece.gatech.edu>; from cwilson@ece.gatech.edu on Fri, Dec 29, 2000 at 03:04:44PM -0500

Here is an example of the state change:
<Open a new shell>
	stty -a > good
	less good
	stty -a > bad

<Good contains:>
	speed 38400 baud; rows 25; columns 80; line = 0;
	intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>;
	eol2 = <undef>; 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

<Bad contains:>
	speed 38400 baud; rows 25; columns 80; line = 0;
	intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>;
	eol2 = <undef>; 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

Diffing them shows the changes
brkint icrnl ixon icanon iexten echo -> -brkint -icrnl -ixon -icanon -iexten -echo

I looked at $TERM, it was set to cygwin.  Changing it to other terminal types
(linux, ansi, vt100, and even dumb) caused some changes, like switching to
mono (at least in vi), but did not change the loss of echo.

Any suggestions?

On Fri, Dec 29, 2000 at 03:04:44PM -0500, Charles Wilson wrote:
> Ashok Vadekar wrote:
> > 
> > I installed 1.1.7 on a Win2000 (Professional) machine and have noticed the
> > following problem.  After running vi (vim) or less, the console is returned
> > in a state where shell input is not echoed back to the display.  If I reenter
> > vi, keyboard input is show (ie. typing ":q" shows ":q" on the bottom line).
> > 
> > Running stty before and after the problem occurs show that -echo has been
> > set.  However, stty fails when I try "stty echo" to undo the change.  Actually
> > it seems to fail for any input I try.
> > 
> > I would guess that the problem is in closing a curses session with the console,
> > since commands that only perform simple console IO do not cause the problem.
> 
> Nope.  The vim distributed with cygwin does NOT use the curses library. 
> It uses termcap only.  So don't blame ncurses.
> 
> BTW, I don't see this problem and I'm on Win2K (but haven't upgraded to
> 1.1.7; I'm still using 1.1.6)
> 
> --Chuck
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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