Skip to content

Instantly share code, notes, and snippets.

@XVilka
Last active June 14, 2026 20:56
Show Gist options
  • Select an option

  • Save XVilka/8346728 to your computer and use it in GitHub Desktop.

Select an option

Save XVilka/8346728 to your computer and use it in GitHub Desktop.
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@wendajiang

Copy link
Copy Markdown

I want to know why MacOS built-in terminal not support true color?

@JoshMerlino

Copy link
Copy Markdown

echo -ne \e[1;3;4:3;5;53;38;2;255;127;0;58;2;0;48;255;48;2;255;0;{0..255..8}mX \e[0m\n

windows terminal was not a fan of this one
image

@kurahaupo

kurahaupo commented Mar 15, 2022

Copy link
Copy Markdown

@khamer @JoshMerlino what is the 4:3 supposed to do in the middle of that escape sequence, before the 38 and 48 "extended" colour codes?

@kurahaupo

Copy link
Copy Markdown

@mintty @wendajiang @JoshMerlino - please note that this gist is no longer maintained. Please add your comments to the standardterm repo instead.

@XVilka - this is why I suggested that the entire content of this gist should be deleted except for the link to the repo. It would also help to mark all the comments as "hidden".

@coolmian

coolmian commented May 11, 2022

Copy link
Copy Markdown

After my confirmation. Xshell6/7 support truecolor. But you must set "Tools-Options..-Advanced" check the "Use true color*"

@kurahaupo

Copy link
Copy Markdown

@coolmian would you mind please adding your notes as an issue on the standardterm repo ? (Preferably create a PR with a fix.)

@kurahaupo

kurahaupo commented May 11, 2022

Copy link
Copy Markdown

Reminder to future readers who want to make a comment but didn't notice the warning at the top of this page.

It's now a full-blown git repo so please write your comments there, or clone the repo and suggest changes via a Pull Request:

git clone git+ssh://github.com/termstandard/colors truecolor

THIS GIST HAS MOVED
so any comments made here will be ignored!

@XVilka

XVilka commented May 11, 2022

Copy link
Copy Markdown
Author

@kurahaupo yes, should have made this a long time ago. Now it's done.

@coolmian

Copy link
Copy Markdown

@coolmian would you mind please adding your notes as an issue on the standardterm repo ? (Preferably create a PR with a fix.)

OK, I've done it now

@kurahaupo

Copy link
Copy Markdown

Just repeating this so that it's visible at the bottom of this conversation; please don't reply - the whole point is that this should be the last comment, to make it plainly visible when someone is about to hit "reply".

Reminder to future readers who want to make a comment but didn't notice the warning at the top of this page.

It's now a full-blown git repo so please write your comments there, or clone the repo and suggest changes via a Pull Request:

git clone git+ssh://github.com/termstandard/colors truecolor

THIS GIST HAS MOVED
so any comments made here will be ignored!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment