added Repl clear & reShape with size

a couple more small additions I needed:

* Repl text is now cleared correctly, you can also do this with clearRepl() & clearReplHistory() functions
* added reShape with explicit size, might be useful in certain situaitons