Curses print characters as typed
问题 Using python I am wanting to have the characters printed out as i type, this is easy in java script, but I am not understanding how to use the curses module, this is the code that I tried but it did not work. import curses stdscr = curses.initscr() curses.echo() curses.cbreak() a = raw_input() print a stdscr.refresh() could you please explain how i use this part of the curses module. 回答1: If you just want to get the user input and make the characters printed out as they are typed, there's not