io with ncurses ui