diff options
Diffstat (limited to 'src/pane/terminal.rs')
| -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, |
