#87 Implemented terminal resizing.