gchp / rustbox

Rust implementation of the termbox library
MIT License
469 stars 48 forks source link

Signals are not handler properly #53

Open nadejin opened 9 years ago

nadejin commented 9 years ago

My term is completely broken after finishing application with SIGINT/SIGTERM (cursor and input characters are invisible, x axis positioning is broken too), I guess these signals should be handled to terminate resources properly. I'm using Arch Linux and termite terminal emulator.

skull-squadron commented 7 years ago

Yup, tui programs almost always need to install signal handlers.

Run stty before and after to find the diff.

Quick fix is reset.