summaryrefslogtreecommitdiff
path: root/src/terminal/runtime.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-07-31 16:21:53 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-07-31 16:22:04 +0300
commitbc1c052d1524749b3f24d91e83f120ca8b7f37c4 (patch)
treed012bd4288bec8033bd8e9ab4e2086e8f110178e /src/terminal/runtime.rs
parent7db744ab4758df30f3e811ff9930646ec5f5970d (diff)
fix: read alternate-screen agent history
Diffstat (limited to 'src/terminal/runtime.rs')
-rw-r--r--src/terminal/runtime.rs10
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,