Bug fix with read

* Fixed bug with empty history tables being supplied
* Fixed bug with cursor being off the screen AFTER enter is pressed and
missing first printed line