ncurses / batch test framework