in c with ncurses