Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Date: Thu, 13 Jan 2000 12:58:15 -0500
From: Christopher Faylor <cygwin@sourceware.cygnus.com>
To: Dtcohen@aol.com
Cc: fusz@cadlab.tu-berlin.de, cygwin@sourceware.cygnus.com
Subject: Re: getc() problem with Cygwin v1.0
Message-ID: <20000113125815.A3662@cygnus.com>
Reply-To: cygwin@sourceware.cygnus.com
Mail-Followup-To: Dtcohen@aol.com, fusz@cadlab.tu-berlin.de,
	cygwin@sourceware.cygnus.com
References: <1d.381e82.25af643c@aol.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 1.0i
In-Reply-To: <1d.381e82.25af643c@aol.com>; from Dtcohen@aol.com on Thu, Jan 13, 2000 at 12:24:12PM -0500

On Thu, Jan 13, 2000 at 12:24:12PM -0500, Dtcohen@aol.com wrote:
>> If you need to wait until "RETURN" is pressed maybe you have succes with
>> "gets()". Using "scanf()" is dangerous, because sometimes "RETURN" is left in
>> the buffer.
>
>Yes, using gets() or fgets() for a small program would work better, but
>the real problem is that canonical mode is broken for v1.0 (the man
>page for "termio" explains this in detail, but it basically means getc(stdin)
>should block until a carriage return is entered).  Canonical mode also
>allows the user to backspace over his mistakes -- which also doesn't work
>with v1.0.

I just tried cat >/dev/null using the cygwin CD.  I could edit the line
as expected.  I tried this from the command line, under bash, and under
/bin/sh.  All of them worked fine.

I think that if canonical mode was really broken we would have heard about
it from a numbe of different directions by now.

I also tried your test case, which worked as expected.

As a wild guess, it sounds like you may not be using the Cygwin 1.0 DLL.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

