Skip to content

Commit c99149a

Browse files
authored
Adds ghostty as supported terminal for term integration (OSC 9;4) (#15977)
### What does this PR try to resolve? Adds ghostty to the list of terminals that support OSC 9;4 This is supported as of Ghostty 1.2.0 (released on September 15, 2025) https://ghostty.org/docs/install/release-notes/1-2-0#graphical-progress-bars ### How to test and review this PR? I just compiled cargo, then used the new cargo to try to build the repo (with another target so it actually compiled) Ex: `./target/debug/cargo build --target aarch64-apple-ios` The progress bar can be seen in the top of the terminal: <img width="833" height="585" alt="image" src="https://github.com/user-attachments/assets/494a03fe-c337-4935-9ac3-0b0144f47b2f" />
2 parents ca8d20d + 0f380ef commit c99149a

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)