how to input a word in ncurses screen?,curses.endwin()