Files
oak-gpui/crates
Miao 4b1e78cd5c terminal: Fix COLORTERM regression for true color support (#38379)
Closes #38304 

Release Notes:

- Fixed true color detection regression by setting `COLORTERM=truecolor`

---

Reason:

The regression is possibly introduced in [pr#36576: Inject venv
environment via the
toolchain](https://github.com/zed-industries/zed/pull/36576/files#diff-6f30387876b79f1de44f8193401d6c8fb49a2156479c4f2e32bc922ec5d54d76),
where `alacritty_terminal::tty::setup_env();` is removed.

The `alacritty_terminal::tty::setup_env();` does 2 things, which sets
`TERM` & `COLORTERM` envvar.
```rs
/// Setup environment variables.
pub fn setup_env() {
    // Default to 'alacritty' terminfo if it is available, otherwise
    // default to 'xterm-256color'. May be overridden by user's config
    // below.
    let terminfo = if terminfo_exists("alacritty") { "alacritty" } else { "xterm-256color" };
    unsafe { env::set_var("TERM", terminfo) };

    // Advertise 24-bit color support.
    unsafe { env::set_var("COLORTERM", "truecolor") };
}
```
2025-09-18 08:15:52 +00:00
..
2025-09-12 18:07:59 +02:00
2025-08-13 13:25:52 -06:00
2025-09-08 21:53:17 -06:00
2025-09-03 22:10:14 +00:00
2025-09-12 14:45:38 -04:00
2025-09-17 11:26:53 +02:00
2025-09-17 10:47:09 +00:00
2025-08-19 20:33:44 +00:00
2025-09-08 21:53:17 -06:00
2025-09-08 21:53:17 -06:00
2025-09-17 10:47:09 +00:00
2025-09-17 14:45:25 +00:00