fix namespace problem with unqalified name.
Rewrite of terminal rawmode api. Backspace and ESC are now recognised correctly.