start of ncurses driver