Detect terminal resize on Windows (fix #4790)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Windows has no SIGWINCH and notifyOnResize was an empty TODO, so fzf running in --height mode never noticed console size changes. Poll the console screen buffer dimensions every 100ms and push a signal through the same channel SIGWINCH uses on Unix. Full-screen mode is unaffected as it goes through tcell which emits its own resize events.
authored by Cyrus · committed by Cyrus · parent b163463 · Browse files · 1 file+39 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+39 added−1 removed
- other:+39 added−1 removed