This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GNU screen not redrawing properly

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

Eric, please see the discussion of 256-color mode in screen in
/usr/share/doc/screen/README.Cygwin.  It includes the proper terminal settings,
as Andy described.  Patches are welcome if more information is needed there.

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]