[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Handling bkgset() and friends
From: |
Thomas Dickey |
Subject: |
Re: Handling bkgset() and friends |
Date: |
Sat, 19 Oct 2019 05:49:06 -0400 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
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
signature.asc
Description: PGP signature