bug-ncurses
[Top][All Lists]
Advanced

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

Re: Handling bkgset() and friends


From: Bryan Christ
Subject: Re: Handling bkgset() and friends
Date: Sat, 19 Oct 2019 18:03:25 -0500

Thanks.  That first link pretty much summarizes all of my observations with background color and relevant CSIs.  It looks like, most of the time I "guessed" right.

On Sat, Oct 19, 2019 at 4:49 AM Thomas Dickey <address@hidden> wrote:
On Thu, Oct 17, 2019 at 02:20:49PM -0500, Bryan Christ wrote:
> When bkgdset() is called the "background is combined (OR'ed) with all
> non-blank
> characters that are written into the window with waddch."  Unfortunately,
> there is no CSI that corresponds to this operation.  When I honor CSI ED
> and similar sequences how would I know what color to fill the cell with?
> Looking at the sequences emitted by ncurses, it *seems* like it might be
> reasonable to assume that the foreground and background colors that are set
> just before CSI ED is called should be regarded as the default fg / bg
> combination.  Is that a inference to run with?

That's how ncurses interprets the "bce" capability.

https://invisible-island.net/ncurses/ncurses.faq.html#bce_mismatches

There's a long story behind the choices outlined in the FAQ:

https://invisible-island.net/ncurses/ncurses-slang.html#cause_bce

--
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net


--
Bryan
<><

reply via email to

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