removed debugging info
fixed:
* screen not always redrawing after clear etc. - add back semaphore + redraw_required calls.
* export TERM=xterm required.
* possible to fall off edge of screen, screen resizing.