I would start with a stdscr.clear()
(if you need to clear the screen)
But you should add a stdscr.refresh()
between your addstr() and the getch()
And as said by T3ERR0R, don't forget the curses.endwin()
before the end of your script.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…