termstandard / colors

Color standards for terminal emulators
The Unlicense
1.1k stars 44 forks source link

xterm and urxvt correction #13

Closed vdrandom closed 2 years ago

vdrandom commented 5 years ago

xterm (as of 344, but looks like long before as well) seems to have full support for truecolor escape sequences, as well as the proper terminfo entry for that: xterm-direct.

rxvt-unicode (cvs head) does not approximate colors. Instead it uses limited palette to store required colors and then use them instead of generating colors on the fly. This is supposed to result in less resource usage and, as a side effect, limited amount of colors available in the window at the same time. From what I can tell, this may result in some collisions as the palette entries get reused. But I haven't done much testing. It is very quirky, yes, but it is definitely not an approximation.

xaizek commented 2 years ago

I don't see any approximation in xterm 367. It's not clear from the changelog when it changed, but claim about xterm using approximation is definitely not true anymore.

vdrandom commented 2 years ago

It's been a while, rxvt-unicode 9.25 has been released. The said changes are now available in the stable version.

To reiterate, it is not an approximation. It's a limited palette populated with the correct 24 bit colors, a compromize between lousy 256 color approximation and keeping memory consumption to minimum.

clort81 commented 2 years ago

please fix the incorrect xterm claim. it supports true 24bit.

clort81 commented 1 year ago

It's been a while, rxvt-unicode 9.25 has been released. The said changes are now available in the stable version.

To reiterate, it is not an approximation. It's a limited palette populated with the correct 24 bit colors, a compromize between lousy 256 color approximation and keeping memory consumption to minimum.

urxvt does not support 24 bit colors properly because I can't display more than a limited subset of colors at one time. Is there any patch we could get into urxvt that would allow true (non paletted) 24 bit suppoirt?

vdrandom commented 1 year ago

urxvt does not support 24 bit colors properly because I can't display more than a limited subset of colors at one time. Is there any patch we could get into urxvt that would allow true (non paletted) 24 bit suppoirt?

There were such patches before this was implemented. Not sure if they are compatible though.