Files
RedBear-OS/local
vasilito ac12f9e398 tlc: fix terminal resize detection with poll-based event loop
MC uses SIGWINCH→self-pipe→select(stdin+pipe) for resize detection.
In safe Rust (#![deny(unsafe_code)]), the equivalent is polling stdin
with a 200ms timeout via rustix::event::poll. This wakes the main loop
every 200ms even without key input, allowing terminal size check and
full redraw on resize. Same result as MC's signal-driven approach
without requiring unsafe signal handlers.

Previously the event loop blocked indefinitely on events.next() —
terminal resize was only detected on the next keypress.
2026-06-19 17:49:56 +03:00
..
2026-06-18 20:46:44 +03:00