rschmitt / heatseeker

A high-performance Selecta clone, written in Rust.
MIT License
214 stars 10 forks source link

Handle window resizing #10

Closed rschmitt closed 8 years ago

rschmitt commented 9 years ago

Heatseeker should detect when the terminal window has been resized and re-render the screen accordingly. It should be relatively easy to support this feature on both Windows and POSIX.

rschmitt commented 9 years ago

The proper way to do this in POSIX is by handling SIGWINCH. Doing this in Rust is technically an open issue, but as always there are easy workarounds.

https://github.com/rust-lang/rust/issues/11203 https://users.rust-lang.org/t/unix-signals-in-rust/733