Get the tty winsize for file descriptor fd. Returns a tuple (ws_row, ws_col).
termios/tcgetwinsize
tcgetwinsize