1. Mikael Berthe
  2. mcabber-crew
Issue #126 new

Support for True Color (16 millions colors)

Droid Developers
created an issue

Now more terminals bring support for 16 million colors (see references below).

Here's a test case for terminal:

printf "\x1b[38;2;255;100;0mTRUECOLOR\x1b[0m\n"

It's a common confusion about terminal colors... Actually we have this: 1. plain ascii 2. ansi escape codes (16 color codes with bold/italic and background) 3. 256 color palette (216 colors+16gray + ansi) (colors are 24bit) 4. 24bit true color (888 colors (aka 16 milion)

The 256 color palete is configured at start, and it's a 666 cube of colors, each of them defined as a 24bit (888 rgb) color.

This means that current support can only display 256 different colors in the terminal, while truecolor means that you can display 16 milion different colors at the same time.

Truecolor escape codes doesnt uses a color palete. It just specifies the color itself.

[1] https://en.wikipedia.org/wiki/ANSI_color

Here is terminals discussions:

Now supporting truecolor:

  1. st (from suckless) - http://lists.suckless.org/dev/1307/16688.html

  2. konsole (already fixed) - https://bugs.kde.org/show_bug.cgi?id=107487

  3. all libvte based terminals: https://bugzilla.gnome.org/show_bug.cgi?id=704449

  4. sakura https://bugs.launchpad.net/sakura/+bug/1202564

  5. Also iterm2 have support for truecolor.

Not supporting truecolor:

  1. urxvt - http://lists.schmorp.de/pipermail/rxvt-unicode/2013q3/001826.html

  2. mlterm - http://sourceforge.net/mailarchive/message.php?msg_id=31828705

Here is another console programs discussion:

  1. mutt - http://dev.mutt.org/trac/ticket/3674

  2. mc - http://www.midnight-commander.org/ticket/3145#comment:1

  3. s-lang library - http://mailman.jedsoft.org/pipermail/slang-users-l/2014/000798.html

  4. ncurses library - https://lists.gnu.org/archive/html/bug-ncurses/2013-10/msg00007.html

  5. tig - https://github.com/jonas/tig/issues/227

  6. emacs - http://emacs.1067599.n5.nabble.com/RFC-Add-tty-True-Color-support-td299962.html

  7. vim - https://bitbucket.org/ZyX_I/vim/commits/5e3877f

Comments (5)

  1. Log in to comment