观察此脚本的行为:
import curses
scr = curses.initscr()
curses.start_color()
curses.init_pair(1, curses.COLOR_YELLOW, curses.COLOR_RED)
length, height = scr.getmaxyx()
win = curses.newwin(height, length, 0, 0)
win.addch(0, 0, "Q", curses.color_pair(1))
win.getch()
curses.endwin()
这是怎么回事?