def my_raw_input(r, c, prompt_string):
"""
Gets input on the screen
:param r: y coordinate
:param c: x coordinate
:param prompt_string: The prompt string
:return: The input string
"""
curses.echo()
GUI.box.addstr(r, c, prompt_string, GUI.high_light_text)
GUI.box.refresh()
input_str = GUI.box.getstr(r + 2, c, curses.COLS)
return input_str.decode('UTF-8')
评论列表
文章目录