www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/01/13/15:13:28

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
Date: Thu, 13 Jan 2000 15:25:22 -0500
From: Christopher Faylor <cygwin AT sourceware DOT cygnus DOT com>
To: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Cc: Dtcohen AT aol DOT com, fusz AT cadlab DOT tu-berlin DOT de, cygwin AT sourceware DOT cygnus DOT com
Subject: Re: getc() problem with Cygwin v1.0
Message-ID: <20000113152522.A8095@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: Earnie Boyd <earnie_boyd AT yahoo DOT com>, Dtcohen AT aol DOT com,
fusz AT cadlab DOT tu-berlin DOT de, cygwin AT sourceware DOT cygnus DOT com
References: <20000113201003 DOT 4585 DOT qmail AT web115 DOT yahoomail DOT com>
Mime-Version: 1.0
X-Mailer: Mutt 1.0i
In-Reply-To: <20000113201003.4585.qmail@web115.yahoomail.com>; from earnie_boyd@yahoo.com on Thu, Jan 13, 2000 at 12:10:03PM -0800

On Thu, Jan 13, 2000 at 12:10:03PM -0800, Earnie Boyd wrote:
>--- Dtcohen AT aol DOT com wrote:
>-8<-
>> 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.
>> 
>> Pre-compiled programs distributed with Cygwin v1.0 such as bc.exe, dc.exe,
>> etc all rely on canonical mode.  It is especially annoying to not be able
>> to backspace over my mistakes with dc.exe -- I have to kill the program
>> each time and start over.  Even if I were to modify the souce code to
>> replace getc(stdin) with fgets(...), I still wouldn't be able to backspace...
>> 
>> And for that matter, you can't backspace with sh.exe, either.  I can't
>> believe I'm the first person to notice this.
>> 
>> Hey Cygnus, are you reading this?  Is there any way we can fix canonical
>> mode for v1.0?
>> 
>
>Uhm... you've got something not set correctly.  What is your TERM variable set
>to?  It should read TERM=cygwin.  A paste of the output of `cygcheck -s -v -r'
>would be helpful.

The TERM setting should be irrelevant to this.  However, if it isn't set, it
will default to cygwin.

The TERM setting does not affect the default handling of canonical mode
in either UNIX or cygwin.

cgf

--
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