delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/05/09/13:37:11

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
Subject: Re: Who's using "CYGWIN=tty" and why?
References: <20110509161028 DOT GJ27739 AT calimero DOT vinschen DOT de> <f5bzkmv6e1d DOT fsf AT calexico DOT inf DOT ed DOT ac DOT uk> <20110509163408 DOT GK27739 AT calimero DOT vinschen DOT de>
From: ht AT inf DOT ed DOT ac DOT uk (Henry S. Thompson)
Date: Mon, 09 May 2011 18:36:45 +0100
In-Reply-To: <20110509163408.GK27739@calimero.vinschen.de> (Corinna Vinschen's message of "Mon, 9 May 2011 18:34:08 +0200")
Message-ID: <f5bvcxj6aj6.fsf@calexico.inf.ed.ac.uk>
User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.21 (linux)
MIME-Version: 1.0
X-Edinburgh-Scanned: at nougat.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus
X-IsSubscribed: yes
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

Corinna Vinschen writes:

> On May  9 17:21, Henry S. Thompson wrote:
>> Corinna Vinschen writes:
>> 
>> > Chris and I are wondering how many people are using the Windows console
>> > as local console window in CYGWIN=tty mode and why.
>> 
>> I am one such.
>> 
>> > 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.
>> 
>> Um, history is sticky, is I guess the answer.  When I started using
>> cygwin (a _long_ time ago), CYGWIN=tty was the recommended setting
>> (and isn't it still there in cygwin/cygwin.bat ?).  So I have
>
> No, it's not the default, and it never was, actually.

Well, I guess I misunderstood the earlier version of this prose (from
[1]):

  The CYGWIN variable is used to configure many global settings for
  the Cygwin runtime system. Initially you can leave CYGWIN unset or
  set it to tty (e.g. to support job control with ^Z etc...) using a
  syntax like this in the DOS shell, before launching bash.

plus the prose further up

  Some of these settings need to be in effect prior to launching the
  initial Cygwin session (before starting your bash shell, for
  instance). They should therefore be set in the Windows environment

to mean that CYGWIN=tty was recommended.  I followed what I understood
that recommendation to be at the time, and have faithfully copied that
into my Windows environment initialisation ever since.

> I don't quite understand, if you use the Windows console for pure
> Windows stuff, why do you use tty mode at all?

Because I thought that having job control might be useful, and so I
followed the recommendation above. . .  I clearly didn't understand,
at the time, that the console as such, vs. the console running bash
as from cygwin.bat, were not the same thing.

> And what do you use to run Cygwin apps?

mintty, of course :-)

> Many native Windows tools don't work well in tty mode anyway.  For
> non-Cygwin tools, the default notty mode is the most compatible one.

OK, I hear that as answers along the lines of "yes", and "only good
things" to my questions:

 >> Is it time to remove it?  I do use a windows console
 >> occasionally for pure Windows activities---what change(s) will I see?

The Wayback machine [2] suggests that the prose quoted above hasn't
changed for nearly 11 years -- perhaps it's due for an update?

ht

[1] http://cygwin.com/cygwin-ug-net/setup-env.html
[2] http://replay.web.archive.org/20000829065425/http://sources.redhat.com/cygwin/cygwin-ug-net/setup-env.html
-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht AT inf DOT ed DOT ac DOT uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

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