ncurses/template readline/template