terminal: Set TERM to xterm-256color (#22777)

This is a follow-up to #22615 and fixes the issue of `alacritty`
resulting in broken shell/CLI apps if `alacritty` is not in the terminfo
database.

Closes #ISSUE

Release Notes:

- Set `TERM` to `xterm-256color` in Zed's built-in terminal
This commit is contained in:
Thorsten Ball 2025-01-07 18:25:48 +01:00 committed by GitHub
parent 56017022c4
commit d2e44ab87d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -347,7 +347,7 @@ impl TerminalBuilder {
env.insert("ZED_TERM".to_string(), "true".to_string()); env.insert("ZED_TERM".to_string(), "true".to_string());
env.insert("TERM_PROGRAM".to_string(), "zed".to_string()); env.insert("TERM_PROGRAM".to_string(), "zed".to_string());
env.insert("TERM".to_string(), "alacritty".to_string()); env.insert("TERM".to_string(), "xterm-256color".to_string());
env.insert( env.insert(
"TERM_PROGRAM_VERSION".to_string(), "TERM_PROGRAM_VERSION".to_string(),
release_channel::AppVersion::global(cx).to_string(), release_channel::AppVersion::global(cx).to_string(),