delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/05/10/05:02:19

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 10 May 2011 11:01:30 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Who's using "CYGWIN=tty" and why?
Message-ID: <20110510090130.GM27739@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20110509161028 DOT GJ27739 AT calimero DOT vinschen DOT de> <BANLkTinTa7vJ6QuwOAE-fo60xcwkS5aVXg AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <BANLkTinTa7vJ6QuwOAE-fo60xcwkS5aVXg@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On May 10 10:29, Csaba Raduly wrote:
> On Mon, May 9, 2011 at 6:10 PM, Corinna Vinschen  wrote:
> > Hi,
> >
> >
> > Chris and I are wondering how many people are using the Windows console
> > as local console window in CYGWIN=tty mode and why.
> >
> > Here's why we ask:
> >
> > We are both not sure why anybody would use it voluntarily, given that
> > it's I/O is extremly slow, compared to using a Windows console window in
> > the default CYGWIN=notty mode or, even better, mintty.  Actually, we
> > only keep the console tty mode up because it was "always there", 14
> > years or so.
> >
> > So, if you're using a console in tty mode, why are doing that?  Did you
> > ever notice that it's much slower?  Did you ever consider to switch to
> > mintty or any other terminal emulator instead?  If not, why?  Would
> > anybody really *miss* the CYGWIN=tty mode?  If so, why?  What does this
> > mode have which isn't covered by notty mode or another terminal
> > emulator?
> 
> Ever since I figured out how to configure rxvt to put the scrollbar on
> the right, I haven't used the "run bash from cmd.exe" console.
> Nowadays, for Cygwin I use mintty exclusively.
> Sometimes I run C:\cygwin17\bin\grep from the Windows prompt, but
> that's not affected by CYGWIN=tty, right?

It is affected.  If this setting is in your Windows environment, then
the first Cygwin process in a Cygwin process tree will set up a pseudo
terminal within the console, which in turn adds a layer of pipes between
the application and the console window, rather than just using the
console handles for stdio.

> Anyway, I haven't had the CYGWIN env.var set for years, and never missed it.
> 
> >
> > Please enlighten us, otherwise we will just rip out this terminal mode
> > for good.
> 
> What would that gain ? Would it speed up the rest of the code? Would
> the rest of the code become cleaner, easier to understand/maintain?

The latter.  After all, the more code and the more conditions you have
to support various settings, the more complicated the code gets and
the more complicated the maintainance gets.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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