Repository navigation
Keep queued TUI input responsive and make Ctrl-C global - #152
Merged
Merged
Conversation
lance0
force-pushed
the
fix/tui-input-responsiveness
branch
from
October 16, 2026 03:14
f82f209 to
e95e765
Compare
PgUp/PgDn in help moved a fixed 10 rows, so on short terminals the rows between pages were unreachable; page by the popup's visible height as hop details now do. The mid-width status hints were chosen by a fixed 60-column threshold that ignored the "? help" prefix and clipped "Enter details"; fall back to the short hints whenever the full set would not fit.
lance0
force-pushed
the
fix/responsive-tui-layouts
branch
from
October 16, 2026 15:53
19f2404 to
58d364b
Compare
lance0
force-pushed
the
fix/tui-input-responsiveness
branch
from
October 16, 2026 15:53
a527ce3 to
8419976
Compare
lance0
marked this pull request as ready for review
October 16, 2026 15:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A burst of navigation keys makes pause and quit wait behind one 16 ms sleep per key. Modal handlers also consume Ctrl-C before the quit handler sees it.
Wake the UI directly from a bounded asynchronous event channel, process queued input independently of the frame interval, and keep redraws capped at the existing ~60 fps. Cancellation wakes an idle UI immediately, Ctrl-C/ETX quits from every overlay, and the input thread exits when its receiver closes. Target-list refreshes retain frame-based pacing.
Stacked on #151. This separates input latency from Ratatui's immediate-mode rendering cadence: https://ratatui.rs/concepts/rendering/.
Validation: full build/test/clippy/fmt/doc checks and Rust 1.88 all-target check. Added event-loop regressions for 80 queued keys, redraw throttling, idle cancellation and both Ctrl-C encodings across all overlays. Release-build local PTY audit on Apple M1 Pro/macOS 15.0.1 (Crossterm output; excludes terminal-emulator painting): single-key p95 34.23 → 14.36 ms; pause behind 80 navigation keys 1668.31 → 20.02 ms; no output during two idle seconds. Ctrl-C in Settings now exits.