Skip to content
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

Set the COLORTERM environment variable to 'truecolor' to advertise 24-bit color support #875

Closed
krishnakumarg1984 opened this issue Jun 15, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@krishnakumarg1984
Copy link

krishnakumarg1984 commented Jun 15, 2021

The title is hopefully descriptive enough.

An identical feature request for alacritty was implemented sometime ago:

A lot of other terminals (terminator, iTerm2, konsole, hyper, ...) set the COLORTERM environment variable to truecolor to indicate that the terminal supports it (see https://gist.github.com/XVilka/8346728 for more details).

It is not a really great solution (it can fail if you start a terminal from another terminal, for example), but apparently there is currently no other standard.

I would therefore propose that alacritty sets COLORTERM=truecolor in order for application developers to detect whether or not the terminal supports it.

See this commit which implements this for alacritty. Another example for qterminal is here.

Wezterm users have to currently hardcode this environment variable & value string in their config.lua file. See this example config in an issues filed in this repo. This shouldn't be necessary at all since Wezterm is capable of 24-bit colors, it should proudly advertise it (and leave it up to various programs to use or discard it).

@krishnakumarg1984 krishnakumarg1984 added the enhancement New feature or request label Jun 15, 2021
@wez wez closed this as completed in f752d0e Jun 16, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2023

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant