From 0f380eff583acdfc2bf679342efd3ec654f6b89e Mon Sep 17 00:00:00 2001 From: Ethan Budd Date: Wed, 17 Sep 2025 08:35:50 -0700 Subject: [PATCH] add ghostty as supported terminal for term integration --- src/cargo/core/shell.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cargo/core/shell.rs b/src/cargo/core/shell.rs index a9c984c5b..8ac6e6fb8 100644 --- a/src/cargo/core/shell.rs +++ b/src/cargo/core/shell.rs @@ -596,8 +596,9 @@ fn supports_term_integration(stream: &dyn IsTerminal) -> bool { let windows_terminal = std::env::var("WT_SESSION").is_ok(); let conemu = std::env::var("ConEmuANSI").ok() == Some("ON".into()); let wezterm = std::env::var("TERM_PROGRAM").ok() == Some("WezTerm".into()); + let ghostty = std::env::var("TERM_PROGRAM").ok() == Some("ghostty".into()); - (windows_terminal || conemu || wezterm) && stream.is_terminal() + (windows_terminal || conemu || wezterm || ghostty) && stream.is_terminal() } pub struct Hyperlink {