From cc527d45fe4821cb11c484372a9f25c51c02e078 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 2 Jun 2026 02:27:14 +0300 Subject: perf: retain terminal render updates --- src/terminal/runtime.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/terminal') diff --git a/src/terminal/runtime.rs b/src/terminal/runtime.rs index 0fefe037..bfc8f3c6 100644 --- a/src/terminal/runtime.rs +++ b/src/terminal/runtime.rs @@ -273,6 +273,14 @@ impl TerminalRuntime { self.0.render(frame, area, show_cursor); } + pub(crate) fn collect_dirty_patch( + &self, + area_width: u16, + area_height: u16, + ) -> crate::pane::TerminalDirtyPatchOutcome { + self.0.collect_dirty_patch(area_width, area_height) + } + pub fn visible_hyperlinks(&self, area: Rect) -> Vec<((u16, u16), String, String)> { self.0.visible_hyperlinks(area) } @@ -378,6 +386,10 @@ impl TerminalRuntime { )) } + pub(crate) fn test_process_pty_bytes(&self, bytes: &[u8]) { + self.0.test_process_pty_bytes(bytes); + } + pub(crate) fn test_with_scrollback_bytes( cols: u16, rows: u16, -- cgit v1.2.3