aboutsummaryrefslogtreecommitdiff
path: root/src/pane
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-08 01:36:51 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-08 01:36:51 +0300
commitfb56e64537de5f93786ed121f703da2a4105badc (patch)
tree67f6e100141dbee05c75ec421927d62e54d23ec6 /src/pane
parent416827872a6e2c820bd58209d267685d4c07cb7d (diff)
fix: improve windows pane behavior
Diffstat (limited to 'src/pane')
-rw-r--r--src/pane/terminal.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pane/terminal.rs b/src/pane/terminal.rs
index 5f44854d..fa281553 100644
--- a/src/pane/terminal.rs
+++ b/src/pane/terminal.rs
@@ -187,6 +187,10 @@ impl PaneTerminal {
self.ghostty.cursor_state()
}
+ pub fn synchronized_output_active(&self) -> bool {
+ self.ghostty.synchronized_output_active()
+ }
+
pub fn visible_text(&self) -> String {
self.ghostty.visible_text()
}
@@ -889,6 +893,18 @@ impl GhosttyPaneTerminal {
})
}
+ pub fn synchronized_output_active(&self) -> bool {
+ self.core
+ .lock()
+ .ok()
+ .and_then(|core| {
+ core.terminal
+ .mode_get(crate::ghostty::MODE_SYNCHRONIZED_OUTPUT)
+ .ok()
+ })
+ .unwrap_or(false)
+ }
+
pub fn encode_terminal_key(
&self,
key: crate::input::TerminalKey,