curses to ncurses