Skip to main content

Support for the standard curses module on Windows

Project description

Adds support for the standard Python curses module on Windows. Based on https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses. Uses the PDCurses curses implementation.

PDCurses is compiled with wide character support, meaning get_wch() is available. UTF-8 is forced as the encoding.

Note that PDCurses requires an explicit curses.resize_term(0, 0) call after receiving KEY_RESIZE to get behavior similar to the automatic SIGWINCH handling in ncurses. ncurses reliably fails for resize_term(0, 0), so a compatibility hack is to always call resize_term(0, 0) and ignore any curses.error exceptions.

Maybe it would be better to detect KEY_RESIZE in _cursesmodule.c and call resize_term(0, 0) there, for automatic compatibility…

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for windows-curses, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size windows_curses-1.0-cp27-cp27m-win32.whl (48.1 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size windows_curses-1.0-cp27-cp27m-win_amd64.whl (56.2 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size windows_curses-1.0-cp35-cp35m-win32.whl (54.2 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size windows_curses-1.0-cp35-cp35m-win_amd64.whl (63.5 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size windows_curses-1.0-cp36-cp36m-win32.whl (54.5 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size windows_curses-1.0-cp36-cp36m-win_amd64.whl (64.0 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size windows_curses-1.0-cp37-cp37m-win32.whl (54.5 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size windows_curses-1.0-cp37-cp37m-win_amd64.whl (64.0 kB) File type Wheel Python version cp37 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page