add SIGWINCH support (handle terminal size changes during running)