delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/01/18:58:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <3ttq9517vregfno88j680fvvg8jd8725kn@4ax.com>
References: <announce DOT gaeo95tesfohfdbn4m8snu1afforj074rg AT 4ax DOT com> <416096c60908312242g39e38fe5s5dbe299e84f6afd8 AT mail DOT gmail DOT com> <loom DOT 20090901T165202-526 AT post DOT gmane DOT org> <loom DOT 20090901T182021-340 AT post DOT gmane DOT org> <416096c60909010945q1673b591w316629d54d606310 AT mail DOT gmail DOT com> <17kq9510j9kst8dcpc516i8ce10n64nlta AT 4ax DOT com> <416096c60909011214j22d74367t6cc6238b4808655a AT mail DOT gmail DOT com> <3ttq9517vregfno88j680fvvg8jd8725kn AT 4ax DOT com>
Date: Tue, 1 Sep 2009 23:57:59 +0100
Message-ID: <416096c60909011557u54eed209j960304414091099c@mail.gmail.com>
Subject: Re: [ANNOUNCEMENT] Updated: screen, now with 256-color support!
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
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

> 'term screen-256color' sets TERM=screen-256color in the
> environment of programs running inside screen, hence any program or
> script that recognises "screen" but not "screen-256color" will no
> longer work as expected.

Btw, a different approach to enabling 256 colour support by default,
which doesn't suffer from the problem above and which wouldn't require
any faffing about with the TERM variable, would be to bump the
'colors' capability in the "xterm", "rxvt" and "screen" terminfo
entries from 8 to 256.

Unfortunately that's not without compatibility issues either though,
which affect remote connections. When connecting from Cygwin to a host
where those terminfo entries still say 8 colours, 256 colour support
would be lost again. Not really a problem though, more just a
limitation.

The other way round is slightly more problematic. When connecting from
another host to Cygwin, the other system's xterm, rxvt or screen might
not actually support 256-colour sequences. Yet the application running
on Cygwin would think that it did based on the local terminfo entry.
This would likely result in no colours at all.

Then again, with the 256 colour codes having been around for quite a
long time, and Cygwin not exactly being a popular server platform,
this scenario seems rather unlikely.

(The underlying issue here is that the whole $TERM/termcap/terminfo
design is fundamentally broken. The sensible thing to do would be for
applications to directly ask the terminal they're actually connected
to about its capabilities, rather than consult a humungous local
database of mostly long-forgotten terminal types that's pretty much
guaranteed to be out-of-date.)

Andy

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