X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20110614121229.GA556@icebox>
References: <20110613215328.GA3260@icebox>	<BANLkTinsSdnSrkuBPm8vq+vrFP_e7gTecA@mail.gmail.com>	<20110613234412.GA3724@icebox>	<BANLkTi=6Mx6QdD2bHhP4Eb71DXO4bt7PeQ@mail.gmail.com>	<20110614121229.GA556@icebox>
Date: Tue, 14 Jun 2011 13:32:39 +0100
Message-ID: <BANLkTiki2q6fhUNbMhqXg-2_=kccbQG5ag@mail.gmail.com>
Subject: Re: GNU screen not redrawing properly
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Cc: Eric Pruitt <eric.pruitt@gmail.com>
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p5ECX1M0032394

On 14 June 2011 13:12, Eric Pruitt wrote:
> Outside of screen, TERM=xterm. Inside of screen, well here is the relevant
> line from my bashrc; my screenrc doesn't have anything that would affect
> colors:
>
>    TERM=screen-256color GNU_SCREEN="active" screen -a -A -RR -T "$TERM" && \
>        screen -wipe || exit

Ah, this invokes screen itself with TERM=screen-256color, which tells
it to talk to the outside terminal as if that's another screen, which
is wrong. You want to be invoking it with TERM=xterm-256color instead
(which can be selected on the Terminal page of the mintty options).

Screen's '-T <term>' option determines the TERM variable inside
screen. Setting that to "screen-256color" to tell applications that
they're running in a 256-colour enabled screen does make sense.

Btw, screen emulates 256-colour mode inside a terminal that only
supports 16 colours, by mapping the colours appropriately. Of course
you'll still only get 16 actual colours, but it's still better than
having colour requests beyond the basic 16 ignored.

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


