def addstr(self, y, x, string, attr):
try:
self.window.addstr(y, x, string, attr)
except curses.error:
# Curses will error on the last line even when it works.
# https://stackoverflow.com/questions/7063128/last-character-of-a-window-in-python-curses
if y == self.max_y - 1:
pass
else:
raise
评论列表
文章目录