diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-08-09 20:36:11 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-08-09 20:36:11 +0300 |
| commit | e2aa86a9e8b6445488ef11b2c0a8b4c22a6f79ce (patch) | |
| tree | ea3ea433fca073ae8e0636f42a4c4bf03ea87777 /src/terminal | |
| parent | 4e31084495120674a0cf403a27d3d91c5efb34fe (diff) | |
test: guard pane-scaled render performance
refs #2550
Diffstat (limited to 'src/terminal')
| -rw-r--r-- | src/terminal/runtime.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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<crate::pane::InputState> { self.0.input_state() } + /// Reads only whether the alternate screen is active. pub fn alternate_screen_active(&self) -> bool { self.0.alternate_screen_active() } |
