|
From: | Bryan Christ |
Subject: | Re: Handling bkgset() and friends |
Date: | Sat, 19 Oct 2019 18:03:25 -0500 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |