winsize is a small library that lets you get and set the winsize of a tty.