Skip to content

Commit

Permalink
terminal: Set TERM to xterm-256color (zed-industries#22777)
Browse files Browse the repository at this point in the history
This is a follow-up to zed-industries#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
  • Loading branch information
mrnugget authored Jan 7, 2025
1 parent 5601702 commit d2e44ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/terminal/src/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ impl TerminalBuilder {

env.insert("ZED_TERM".to_string(), "true".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(
"TERM_PROGRAM_VERSION".to_string(),
release_channel::AppVersion::global(cx).to_string(),
Expand Down

0 comments on commit d2e44ab

Please sign in to comment.