Fixed a bug where cursor would not go to the prompt after eshell/clear.