[dev] [st] colors and attributes, general question

From: <random832_AT_fastmail.us>
Date: Tue, 23 Apr 2013 11:52:47 -0400

I'm planning on reworking xdraws and drawregion to draw the background
and text as separate functions. To do this I need to understand some
things:

As I understand it, the behavior is to have all attribute effects on
color (e.g. bold brightening, italic/underline colors) affect only the
foreground and not the background when in normal mode, and affect only
the background and not the foreground in reverse (ATTR_REVERSE) mode. Is
this understanding correct?

As I understand it, the behavior for MODE_REVERSE is to use RGB color
inversion, and not bg/fg swapping (so yellow-on-red becomes
blue-on-cyan, not red-on-yellow) , on all colors _except_ for the
default bg/fg colors. Is this understanding correct?

Is the above outlined behavior actually correct by the standards /
desirable / does it match the behavior of other terminals? config.def.h
says " Another logic would only make the simple feature too complex."
but I find that in making this change supporting the current behavior
(my understanding as outlined above) is actually more complex (because
it requires me to duplicate attribute color mapping in both functions)

There is also, as far as I can tell, no support for brightening the
background for ATTR_BLINK.

-- 
Random832
Received on Tue Apr 23 2013 - 17:52:47 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 23 2013 - 18:00:15 CEST