Thomas,
In about 90% or more of all scenarios, pair zero is most likely color white foreground on color black background. However, assume_default_colors() allows this "rule" to be broken. As far as I can tell, there is no way for my terminal emulator to know about this change.
When an application uses init_color() and the underlying term is an xterm variant, ncurses emits a OSC sequence that tells me about this custom color (via XParseColor). Would it be possible to have ncurses emit a different OSC to indicate when assume_default_colors() is used and what pair zero colors are (in XParseColor RGB values)?
--
Bryan
<><