def curses_input(self, stdscr, r, c, prompt_string):
curses.echo()
stdscr.addstr(r, c, str(prompt_string), curses.A_REVERSE)
stdscr.addstr(r + 1, c, " " * (curses.COLS - 1))
stdscr.refresh()
input_val = ""
while len(input_val) <= 0:
input_val = stdscr.getstr(r + 1, c, 20)
return input_val
评论列表
文章目录