def _inner_addstr(window, string, y=-1, x=-1):
assert curses.has_colors(), "Curses wasn't configured to support colors. Call curses.start_color()"
cur_y, cur_x = window.getyx()
if y == -1:
y = cur_y
if x == -1:
x = cur_x
for line in string.split(os.linesep):
_add_line(y, x, window, line)
# next line
y += 1
评论列表
文章目录