use termbox instead of ncurses, add new tests [dirty]
merge new test from termbox branch