diff options
author | David Peter <sharkdp@users.noreply.github.com> | 2018-09-17 22:32:08 +0200 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-09-17 20:32:08 +0000 |
commit | 35ea0cded20aac5fa40859a22b95979d15018c51 (patch) | |
tree | a8aa8572e50f736d15cb03c5f2d97344eb072c90 /src | |
parent | 7a8a002da6a7c5b17edf5dc8cc8e3f9e089632fc (diff) | |
download | alacritty-35ea0cded20aac5fa40859a22b95979d15018c51.tar.gz alacritty-35ea0cded20aac5fa40859a22b95979d15018c51.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/tty.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -211,6 +211,7 @@ pub fn new<T: ToWinsize>(config: &Config, options: &Options, size: &T, window_id builder.env("SHELL", shell.program()); builder.env("HOME", pw.dir); 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 { builder.env("WINDOWID", format!("{}", window_id)); } |