lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev Background Color


From: Thomas E. Dickey
Subject: Re: lynx-dev Background Color
Date: Sat, 17 Feb 2001 20:45:40 -0500 (EST)

On Sat, 17 Feb 2001 address@hidden wrote:

> In a recent note, Thomas Dickey said:
> 
> > Date: Wed, 14 Feb 2001 18:56:36 -0500
> >  
> > > >         what's $TERM set to (or infocmp output)
> > 
> I'm trying a different terminal emulator:
> :r ! echo $TERM
> xterm-ncsa

I don't recall seeing that one ("xterm-ncsa") before.  I've made a couple
of variants of ncsa in ncurses.  Like xterm-color, ncsa does not implement
back color erase.

> It's interesting that after a shell escape the background and text are
> painted in a single operation; on initial startup of lynx and after
> vi escape, the background is painted first, then the text is drawn.

that's just the way curses clears the screen - it's painting "white"
(light gray) onto the screen to set it to the colors that lynx specified.

> And back to the xterm-color: with the slow modem I can observe the repaint
> operations in detail.
> 
> lynx-2.8.4dev.18
>     screen paints blank gray from top to bottom
>     screen turns white instantly (not from top to bottom)

sounds like white is what your default background is.

>     screen paints blank gray from top to bottom
>     home page written on gray background

> etc.  There's a whole lot of unnecessary (but perhaps unavoidable)
> refreshing going on.  And a whole lot of sometimes annoying memory
> of prior states.  And I've observed other state transitions too
> complicated to describe here.

curses assumes the screen background is black.
lynx wants to paint it white.
that accounts for the refreshing - if the terminal supports bce, then
curses doesn't have to do the extra repainting.

-- 
T.E.Dickey <address@hidden>
http://dickey.his.com
ftp://dickey.his.com


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]