From fb56e64537de5f93786ed121f703da2a4105badc Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Mon, 8 Jun 2026 01:36:51 +0300 Subject: fix: improve windows pane behavior --- src/pane/terminal.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/pane') 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, -- cgit v1.2.3