setting up ncurses