added terminal resizing escape code

I needed terminal resizing for a project I'm working on, hoping it's useful for you too.