add altscreen support

terminals not supporting it seems to be swallowing the control sequence;
so it seems like a safe low common denominator thing to add.
use \033 for escaping instead of \e, it is more portable