(no title)
drougge | 3 years ago
Using ";" is popular, and some parsers even require it, but it makes little sense. A terminal that doesn't know about 38 (anything old) will interpret that 5 as blink if you use ";", which is not what anyone wants.
drougge | 3 years ago
Using ";" is popular, and some parsers even require it, but it makes little sense. A terminal that doesn't know about 38 (anything old) will interpret that 5 as blink if you use ";", which is not what anyone wants.
zadjii|3 years ago
The colons are more correct, but the semicolons are seemingly more broadly supported.
wezfurlong|3 years ago
drougge|3 years ago
That doesn't stop terminals from supporting it of course, just from saying they do.
epage|3 years ago
Where would I find this documented and how broadly is it supported? So far, the most exhaustive documentation I've found is wikipedia [0], vt100 [2], and wezterm with only wezterm talking about this. I also have not seen `:` handled in the various parsers (e.g. `vte` for alacritty) or generators (e.g. `termcolor`) I've looked at.
[0] https://en.wikipedia.org/wiki/ANSI_escape_code
[1] https://vt100.net/emu/dec_ansi_parser
follower|3 years ago
* via <https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-F...> (search for "CSI Pm m Character Attributes (SGR)"):
(This links to <https://invisible-island.net/xterm/xterm.faq.html#color_by_n...>.)The `ctlseqs` document continues:
So, the confusion between use of ";" and ":" separators is because the RGB values are not actually parameters (specified as separated by ";"), rather, the RGB values are subparameters (specified as separated by ":"). [Edit #1]This is covered in more detail by <https://invisible-island.net/xterm/xterm.faq.html#color_by_n...> (mentioned above):
:D It's unfortunately seemingly not possible to directly link to the specific text but hopefully that's enough pointers for people to find it themselves.Once again, seems it's amazing that anything works anywhere. :D
[Edit #1: Corrected from subparameter separator from "," (which is correct for one of the specs I read but incorrect here) to ":".]
[Edit #2: Typo fix.]