Curses C API¶
curses 為擴充模組公開了一個小型的 C 介面。使用者必須包含標頭檔 py_curses.h(此檔案不會由 Python.h 預設包含),並且必須觸發 import_curses() 以填充 (populate) PyCurses_API,通常是作為模組初始化函式的一部分。
警告
Neither the C API nor the pure Python curses module are compatible
with subinterpreters.
-
import_curses()¶
引入 curses C API。呼叫此巨集不需要寫分號。
On success, populate the