Skip to content

Commit 0f380ef

Browse files
committed
add ghostty as supported terminal for term integration
1 parent e0e1a6e commit 0f380ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cargo/core/shell.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,9 @@ fn supports_term_integration(stream: &dyn IsTerminal) -> bool {
596596
let windows_terminal = std::env::var("WT_SESSION").is_ok();
597597
let conemu = std::env::var("ConEmuANSI").ok() == Some("ON".into());
598598
let wezterm = std::env::var("TERM_PROGRAM").ok() == Some("WezTerm".into());
599+
let ghostty = std::env::var("TERM_PROGRAM").ok() == Some("ghostty".into());
599600

600-
(windows_terminal || conemu || wezterm) && stream.is_terminal()
601+
(windows_terminal || conemu || wezterm || ghostty) && stream.is_terminal()
601602
}
602603

603604
pub struct Hyperlink<D: fmt::Display> {

0 commit comments

Comments
 (0)