mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-25 14:05:41 -05:00
Set COLORTERM variable to advertise 24-bit support
Set `COLORTERM` to `truecolor` in order for applications to be able to detect that alacritty supports 24-bit colors. See https://gist.github.com/XVilka/8346728 for more details. Closes #1526.
This commit is contained in:
parent
7a8a002da6
commit
35ea0cded2
2 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Set the environment variable `COLORTERM="truecolor"` to advertise 24-bit color support
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- First click on unfocused Alacritty windows is no longer ignored on platforms other than macOS
|
- First click on unfocused Alacritty windows is no longer ignored on platforms other than macOS
|
||||||
|
|
|
@ -211,6 +211,7 @@ pub fn new<T: ToWinsize>(config: &Config, options: &Options, size: &T, window_id
|
||||||
builder.env("SHELL", shell.program());
|
builder.env("SHELL", shell.program());
|
||||||
builder.env("HOME", pw.dir);
|
builder.env("HOME", pw.dir);
|
||||||
builder.env("TERM", "xterm-256color"); // default term until we can supply our own
|
builder.env("TERM", "xterm-256color"); // default term until we can supply our own
|
||||||
|
builder.env("COLORTERM", "truecolor"); // advertise 24-bit support
|
||||||
if let Some(window_id) = window_id {
|
if let Some(window_id) = window_id {
|
||||||
builder.env("WINDOWID", format!("{}", window_id));
|
builder.env("WINDOWID", format!("{}", window_id));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue