diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-08 01:36:51 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-08 01:36:51 +0300 |
| commit | fb56e64537de5f93786ed121f703da2a4105badc (patch) | |
| tree | 67f6e100141dbee05c75ec421927d62e54d23ec6 /src/pane | |
| parent | 416827872a6e2c820bd58209d267685d4c07cb7d (diff) | |
fix: improve windows pane behavior
Diffstat (limited to 'src/pane')
| -rw-r--r-- | src/pane/terminal.rs | 16 |
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, |
