Set TERM env variable inside the terminal (#22615)

Closes #17991 

Release Notes:

- Set the `TERM` environment variable inside the terminal

Currently the terminal inherits the `TERM` variable from the parent
process. However this can cause issues with programs that rely on this
variable to make sure certain features are present. For example not
supporting backspaces making the terminal almost unusable.
This commit is contained in:
Julius de Boer 2025-01-07 09:58:15 +01:00 committed by GitHub
parent e56b692036
commit 4c47728d6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -347,6 +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_PROGRAM_VERSION".to_string(),
release_channel::AppVersion::global(cx).to_string(),