From 35ea0cded20aac5fa40859a22b95979d15018c51 Mon Sep 17 00:00:00 2001 From: David Peter Date: Mon, 17 Sep 2018 22:32:08 +0200 Subject: 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. --- src/tty.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/tty.rs b/src/tty.rs index 4da11c0e..9f6a2e64 100644 --- a/src/tty.rs +++ b/src/tty.rs @@ -211,6 +211,7 @@ pub fn new(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)); } -- cgit