]> git.ipfire.org Git - thirdparty/gettext.git/commit
libtextstyle: Add support for true-color terminals.
authorBruno Haible <bruno@clisp.org>
Sun, 31 Mar 2019 20:05:16 +0000 (22:05 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 31 Mar 2019 20:05:16 +0000 (22:05 +0200)
commitfd33339b540834fdd40fb83b2337acf78bfdcfce
treeffaf5d936f5b55c40690f459a82c200f2b8a56b7
parent70153e2f290f2ef6db20b045c89c227b3598e997
libtextstyle: Add support for true-color terminals.

* gnulib-local/lib/term-ostream.oo.c (colormodel_t): Add cm_xtermrgb.
(rgb_to_color_xtermrgb): New function.
(attributes_t): Extend the color fields to 25 bits.
(struct term_ostream): New fields active_attr_color, active_attr_bgcolor.
(out_color_change, out_bgcolor_change, term_ostream::rgb_to_color): Handle
cm_xtermrgb.
(out_attr_change): Set also active_attr_color, active_attr_bgcolor.
(async_set_attributes_from_default): Fetch also active_attr_color,
active_attr_bgcolor.
(term_ostream_create): Accept all $TERM values that end in -direct.
* libtextstyle/doc/libtextstyle.texi (Terminal emulators): Document the
prerequisites for true-color support.
* libtextstyle/NEWS: Mention the change.
gnulib-local/lib/term-ostream.oo.c
libtextstyle/NEWS
libtextstyle/doc/libtextstyle.texi