Redraw histories whenever user resize terminal
Bugfix: clear input field whenever possible