Gracefully handle small terminals

Terminal can be resized without causing a traceback.