summaryrefslogtreecommitdiff
path: root/src/app/input/terminal.rs
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-08-19 04:43:28 +0300
committerGitHub <noreply@github.com>2026-08-19 04:43:28 +0300
commita5c69beabfc82d9c3f9563eb821139b2e0f3e14f (patch)
tree9b7049e4629913dcab40d985df399acee262b67b /src/app/input/terminal.rs
parent3667151744e379ac5c8f76d57203b675de8a6ebc (diff)
fix(perf): eliminate redundant terminal wake work (#2962)
* fix(perf): eliminate redundant terminal wake work * fix(perf): harden release benchmark gate * test(perf): strengthen performance guardrails
Diffstat (limited to 'src/app/input/terminal.rs')
-rw-r--r--src/app/input/terminal.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/app/input/terminal.rs b/src/app/input/terminal.rs
index e5b40a74..6b3d3537 100644
--- a/src/app/input/terminal.rs
+++ b/src/app/input/terminal.rs
@@ -154,8 +154,8 @@ impl App {
if matches!(key_event.code, KeyCode::PageUp | KeyCode::PageDown)
&& key_event.modifiers.is_empty()
{
- if let Some(input_state) = rt.input_state() {
- if input_state.plain_page_keys_use_host_scrollback() {
+ if let Some(host_scroll) = rt.plain_page_keys_use_host_scrollback() {
+ if host_scroll {
if key_event.kind == crossterm::event::KeyEventKind::Release {
return None;
}
@@ -282,14 +282,7 @@ impl App {
None
};
- runtime.is_some_and(|runtime| {
- let protocol = runtime.keyboard_protocol();
- protocol.reports_all_keys()
- || (protocol.reports_event_types()
- && runtime
- .input_state()
- .is_some_and(|state| state.modify_other_keys))
- })
+ runtime.is_some_and(crate::terminal::TerminalRuntime::keyboard_report_all_requested)
}
fn terminal_input_runtime(