X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 	tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Andrew Schulman <schulman.andrew@epa.gov>
Subject:  Re: [ANNOUNCEMENT] Updated: screen, now with 256-color support!
Date: Tue, 1 Sep 2009 14:59:10 +0000 (UTC)
Lines: 30
Message-ID:  <loom.20090901T165202-526@post.gmane.org>
References:  <announce.gaeo95tesfohfdbn4m8snu1afforj074rg@4ax.com> <416096c60908312242g39e38fe5s5dbe299e84f6afd8@mail.gmail.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Andy Koppe <andy.koppe <at> gmail.com> writes:
> 
> Andrew Schulman:
> > Instructions for starting screen with 256 color support are in
> > /usr/share/doc/screen/README.Cygwin.  In brief, you have to invoke screen
> > as
> >
> > TERM=screen-256color screen
> 
> I don't think that's quite right. Screen needs to be told what
> terminal it is itself running in. This means "xterm-256color" for
> xterm, PuTTY and MinTTY, and "rxvt-256color" for rxvt.
> 
> Inside screen, however, the TERM variable does need to be set to
> "screen-256color" to tell termcap/terminfo-using programs that they
> are running in a 256-color-enabled screen. The -T option can be used
> for that. So, for example:
> 
> TERM=xterm-256color screen -T screen-256color

Andy, thanks.  Yes, you're right.  When I run screen as you suggest,
several color artifacts disappear.  In particular I get 16 system colors
instead of just 8.

Instead of specifying -T screen-256color every time, one can just put
'term screen-256color' into .screenrc.  I'll update the docs to show this
when I make the release current.

Andrew.



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

