term.c: move ncurses conversion