Follow-up Comment #4, bug #67154 (group screen):

I've been working on a separate patch to properly support standout mode, while
fully supporting all nine ANSI attributes. (Unfortunately, it wasn't until I
saw the link to this bug in the git log that I finally found this reporting
channel.)

This necessarily expands the ATTR_XX mask from 7 bits to 10 bits.

Peter Dey's patch uses "spare" bits in the attribute-colour-pair word that
directly conflict with what I'm doing - or indeed with any attempt to resolve
standout mode - and there aren't enough to do both without changing how the
colouring is encoded.

Please consider restructuring this to have "rendition" as a separate data type
from "ordinary" attributes+colour-pair; perhaps as a struct containing both,
or separate function parameters.

I'm also adding support for properly nested semicolon and colon separators for
SGR sub-parameters, so that +code+\E[2::R:G:Bm-code- works with 4 colons (not
3) as ISO/IEC 8613-6 requires. This leads to the observation that the 9
attributes defined by ECMA-48 aren't the only possibilities, so assuming 10
bits will be enough for all time would be short-sighted. A 64-bit word is
enough for 2×25 for colours, plus 10 attributes, plus 4 spares, which isn't a
lot of leeway but at least some.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67154>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to