using ncurses