简体   繁体   English

Python诅咒iniscr()而没有清除屏幕?

[英]Python Curses iniscr() without Clearing Screen?

For Python 2.7, is there a way to initialize curses without have the screen blank/clear? 对于Python 2.7,有没有一种方法可以初始化curses而不使屏幕空白/清晰? Right now I am using 现在我正在使用

stdscr = curses.initscr()

No. The python curses library is built on the curses/ncurses library. 否。python curses库基于curses / ncurses库构建。 initscr always clears the screen so the library starts with the screen in a known state (empty). initscr始终会清除屏幕,因此库以屏幕的已知状态(空)开始。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM