This [StackOverflow question](https://stackoverflow.com/questions/10856926/sigwinch-equivalent-on-windows/10857339#10857339) describes a possible way to be notified when the terminal size changes on Windows.