diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-31 16:21:53 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-31 16:22:04 +0300 |
| commit | bc1c052d1524749b3f24d91e83f120ca8b7f37c4 (patch) | |
| tree | d012bd4288bec8033bd8e9ab4e2086e8f110178e /src/terminal/runtime.rs | |
| parent | 7db744ab4758df30f3e811ff9930646ec5f5970d (diff) | |
fix: read alternate-screen agent history
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, |
