-
-
Notifications
You must be signed in to change notification settings - Fork 987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RGB SGR sequences support (truecolor) #7
Comments
kitty already supports truecolor. See the screenshot on the readme for an example, which shows vim witha truecolor theme. Indeed, kitty even supprots setting truecolor based colors for the underline, by extending the SGR codes. |
Thanks! Added in the gist. |
walles
added a commit
to walles/moar
that referenced
this issue
Nov 11, 2023
Unsure why colon separated colors exist, but the fact is that a number of things emit colon separated SGR codes. And numerous terminals accept them (search page for "delimiter"): kovidgoyal/kitty#7 Johan got an e-mail titled "moar question: "--RAW-CONTROL-CHARS" equivalent" about the sequence we're testing here.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://gist.github.com/XVilka/8346728
The 256 colour palete is configured at start, and it's a 666 cube of
colours, each of them defined as a 24bit (888 rgb) colour.
This means that current support can only display 256 different colours
in the terminal, while truecolour means that you can display 16 milion
different colours at the same time.
Truecolour escape codes doesnt uses a colour palete. It just specifies the
colour itself.
Here's a test case:
Keep in mind that it is possible to use both ';' and ':' as parameters delimiter.
According to Wikipedia[1], this is only supported by xterm and konsole.
[1] https://en.wikipedia.org/wiki/ANSI_color
Currently, there is no support for the 24-bit colour descriptions in the terminfo/termcap database and utilites.
See the discussion thread here: https://lists.gnu.org/archive/html/bug-ncurses/2013-10/msg00007.html
Here are terminals discussions:
Now supporting truecolour
But there are bunch of libvte-based terminals for GTK2 so they are listed in the another section.
Also, while this one is not exactly a terminal, but a terminal replayer, it still worth mentioning:
Parsing ANSI colour sequences, but approximating them to 256 palette
Note about colour differences: a) RGB axes are not orthogonal, so you cannot use sqrt(R^2+G^2+B^2) formula, b) for colour differences there is more correct (but much more complex) CIEDE2000 formula (which may easily blow up performance if used blindly) [2].
[2] neovim/neovim#793 (comment)
Terminal multiplexers
--truecolor
option)NOT supporting truecolour
[3] You can download patched version here https://github.com/rdebath/PuTTY
[4] You can download patched version here https://github.com/halcy/PuTTY
Here are another console programs discussions:
Supporting True Colour:
Not supporting True Colour:
The text was updated successfully, but these errors were encountered: