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…

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

windows_curses-1.0-cp37-cp37m-win_amd64.whl (64.0 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

windows_curses-1.0-cp37-cp37m-win32.whl (54.5 kB view hashes)

Uploaded CPython 3.7m Windows x86

windows_curses-1.0-cp36-cp36m-win_amd64.whl (64.0 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

windows_curses-1.0-cp36-cp36m-win32.whl (54.5 kB view hashes)

Uploaded CPython 3.6m Windows x86

windows_curses-1.0-cp35-cp35m-win_amd64.whl (63.5 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

windows_curses-1.0-cp35-cp35m-win32.whl (54.2 kB view hashes)

Uploaded CPython 3.5m Windows x86

windows_curses-1.0-cp27-cp27m-win_amd64.whl (56.2 kB view hashes)

Uploaded CPython 2.7m Windows x86-64

windows_curses-1.0-cp27-cp27m-win32.whl (48.1 kB view hashes)

Uploaded CPython 2.7m Windows x86

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page