Fix cursor position after Clear

Cursor position is not set correctly after `Clear`.

Steps to reproduce the problem:
1. Type anything in the console.
2. Strike left arrow key for a couple of times.
3. `Ctrl+K` (or whatever clears the console).
4. The cursor moved to the end of the line. Arrow keys refuse to work.

This closes replit/repl.it#106.