|
|
|
|
|
by epage
1192 days ago
|
|
> Colon is the correct separator there 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 |
|
* 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.]