getting ncurses the hard way