From e2aa86a9e8b6445488ef11b2c0a8b4c22a6f79ce Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sun, 9 Aug 2026 20:36:11 +0300 Subject: test: guard pane-scaled render performance refs #2550 --- src/terminal/runtime.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/terminal/runtime.rs') diff --git a/src/terminal/runtime.rs b/src/terminal/runtime.rs index d3900b68..89544a74 100644 --- a/src/terminal/runtime.rs +++ b/src/terminal/runtime.rs @@ -311,10 +311,16 @@ impl TerminalRuntime { self.0.word_motion_target(row, col, motion) } + /// Collects the complete terminal input-mode snapshot. + /// + /// This performs multiple terminal queries and may format keyboard state. + /// Keep it out of render/layout and pane-scaled loops; add a narrow accessor + /// when only one terminal fact is needed. pub fn input_state(&self) -> Option { self.0.input_state() } + /// Reads only whether the alternate screen is active. pub fn alternate_screen_active(&self) -> bool { self.0.alternate_screen_active() } -- cgit v1.2.3