Fixed history and terminal height/width