trying to get ncurses to working, but failing
got the ncurses loop to work