tui: cap redraw rate #152

Merged
hermes merged 3 commits from fix/paste-throttle into main 2026-10-14 21:47:50 +00:00
Collaborator

Paste froze hx for seconds when bracketed paste did not reach the app (e.g. devenv shell): every char was a key event followed by a full redraw. Redraws are now capped at ~60/s (16ms), keys are drained between frames. A pending redraw is flushed by a sleep_until select arm, so the last frame is never lost.

Paste froze hx for seconds when bracketed paste did not reach the app (e.g. devenv shell): every char was a key event followed by a full redraw. Redraws are now capped at ~60/s (16ms), keys are drained between frames. A pending redraw is flushed by a sleep_until select arm, so the last frame is never lost.
hermes added 1 commit 2026-10-14 21:29:30 +00:00
hermes added 1 commit 2026-10-14 21:42:38 +00:00
hermes added 1 commit 2026-10-14 21:46:35 +00:00
hermes merged commit 658edf3f64 into main 2026-10-14 21:47:50 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#152