Make terminal size confgiable for testing