diff options
Diffstat (limited to 'src/terminal/runtime.rs')
| -rw-r--r-- | src/terminal/runtime.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/terminal/runtime.rs b/src/terminal/runtime.rs index d4b66f06..38b36942 100644 --- a/src/terminal/runtime.rs +++ b/src/terminal/runtime.rs @@ -433,6 +433,16 @@ impl TerminalRuntime { self.0.wheel_routing() } + pub(crate) fn screen_text_snapshot( + &self, + ) -> Option<( + crate::ghostty::ActiveScreen, + crate::terminal::ScreenSnapshot, + )> { + let (screen, cols, rows) = self.0.screen_text_snapshot()?; + Some((screen, crate::terminal::ScreenSnapshot { cols, rows })) + } + pub fn encode_mouse_button( &self, kind: crossterm::event::MouseEventKind, |
