def get_input(self, ascii_char=False):
"""Get an input from the user."""
if not self.debug or self.compat_debug:
if ascii_char:
return getch()
else:
if not sys.stdin.isatty():
return input('')
else:
return input('?: ')
else:
return self.curses_input(self.stdscr, curses.LINES - 3, 2, '?: ', ascii_char)
评论列表
文章目录