delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/01/18/15:30:36

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: Tue, 18 Jan 2000 15:39:09 -0500
From: "'Chris Faylor'" <cgf AT cygnus DOT com>
To: "Fifer, Eric" <EFifer AT sanwaint DOT com>
Cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: getc() problem with Cygwin v1.0
Message-ID: <20000118153909.J2080@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: "Fifer, Eric" <EFifer AT sanwaint DOT com>,
cygwin AT sourceware DOT cygnus DOT com
References: <779F20BCCE5AD31186A50008C75D99791716B6 AT SILLDN_MAIL1>
Mime-Version: 1.0
X-Mailer: Mutt 1.0i
In-Reply-To: <779F20BCCE5AD31186A50008C75D99791716B6@SILLDN_MAIL1>; from EFifer@sanwaint.com on Tue, Jan 18, 2000 at 06:07:07PM -0000

Hmm.  I don't know if there is a better way to do this.  This
patch may be fine.

If I understand what you're saying, you are able to get line
editing inside of, say, "cat", right?  If so, I will apply
this patch.

Thanks for tracking this down.

cgf

On Tue, Jan 18, 2000 at 06:07:07PM -0000, Fifer, Eric wrote:
>
>Jim Grishaw writes:
>>     Thanks for the post.  I would suggest un-setting your CYGWIN=tty
>>variable and see if you still have the problem.
>
>Thanks, but since I'm using a recent snapshot (2000-Jan-14) what I'm
>seeing must be different.  The value of "tty" in CYGWIN did not
>affect the problem I reported.  Again, what I am seeing is that
>line editing works when running inside a console, but within
>rxvt line editing does not work.
>
>After poking around in the source, I was able to make a patch that
>fixes the problem I'm having.  I won't be surprised if there is a
>better way of doing this, but this does fix the problem:
>
>--- fhandler_tty.cc.orig        Tue Jan 18 17:41:18 2000
>+++ fhandler_tty.cc     Tue Jan 18 17:38:07 2000
>@@ -885,7 +885,7 @@
> int
> fhandler_pty_master::write (const void *ptr, size_t len)
> {
>-  line_edit ((char *) ptr, len, 1);
>+  line_edit ((char *) ptr, len /*, 1*/);
>   return len;
> }
>
>Having always_accept (the 3rd arg to line_edit) set to 1 prevents
>pseudo-terminals from having line editing.  I'm not sure what was
>intended here.

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