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.

Filename, size & hash SHA256 hash help File type Python version Upload date
windows_curses-1.1-cp27-cp27m-win32.whl (52.5 kB) Copy SHA256 hash SHA256 Wheel cp27
windows_curses-1.1-cp27-cp27m-win_amd64.whl (60.6 kB) Copy SHA256 hash SHA256 Wheel cp27
windows_curses-1.1-cp35-cp35m-win32.whl (58.6 kB) Copy SHA256 hash SHA256 Wheel cp35
windows_curses-1.1-cp35-cp35m-win_amd64.whl (67.8 kB) Copy SHA256 hash SHA256 Wheel cp35
windows_curses-1.1-cp36-cp36m-win32.whl (58.8 kB) Copy SHA256 hash SHA256 Wheel cp36
windows_curses-1.1-cp36-cp36m-win_amd64.whl (68.3 kB) Copy SHA256 hash SHA256 Wheel cp36
windows_curses-1.1-cp37-cp37m-win32.whl (58.8 kB) Copy SHA256 hash SHA256 Wheel cp37
windows_curses-1.1-cp37-cp37m-win_amd64.whl (68.3 kB) Copy SHA256 hash SHA256 Wheel cp37

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