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 these wheels. Uses the PDCurses curses implementation.

The wheels are built from this GitHub repository.

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

Starting from windows-curses 2.0, in the name of pragmatism, these wheels (but not Gohlke's) include a hack to make resizing work for applications developed against ncurses without Python code changes: Whenever getch(), getkey(), or get_wch() return KEY_RESIZE, resize_term(0, 0) is called automatically. This gives behavior similar to the automatic SIGWINCH handling in ncurses (see PDCurses' resize_term() documentation). This commit implements the hack.

To add the same hack in Python code (which is harmless, and needed if you want resizing to work with older windows-curses versions or with Gohlke's wheels), call curses.resize_term(0, 0) after receiving KEY_RESIZE, and ignore any curses.error exceptions. ncurses reliably fails and does nothing for resize_term(0, 0), so this is safe on *nix.

Please tell me if the resize_term(0, 0) hackery causes you any trouble.

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

If you're not sure about the file name format, learn more about wheel file names.

windows_curses-2.0.1-cp38-cp38m-win_amd64.whl (96.5 kB view details)

Uploaded CPython 3.8mWindows x86-64

windows_curses-2.0.1-cp38-cp38m-win32.whl (84.4 kB view details)

Uploaded CPython 3.8mWindows x86

windows_curses-2.0.1-cp37-cp37m-win_amd64.whl (77.9 kB view details)

Uploaded CPython 3.7mWindows x86-64

windows_curses-2.0.1-cp37-cp37m-win32.whl (69.2 kB view details)

Uploaded CPython 3.7mWindows x86

windows_curses-2.0.1-cp36-cp36m-win_amd64.whl (77.9 kB view details)

Uploaded CPython 3.6mWindows x86-64

windows_curses-2.0.1-cp36-cp36m-win32.whl (69.2 kB view details)

Uploaded CPython 3.6mWindows x86

windows_curses-2.0.1-cp35-cp35m-win_amd64.whl (70.1 kB view details)

Uploaded CPython 3.5mWindows x86-64

windows_curses-2.0.1-cp35-cp35m-win32.whl (60.6 kB view details)

Uploaded CPython 3.5mWindows x86

windows_curses-2.0.1-cp27-cp27m-win_amd64.whl (62.9 kB view details)

Uploaded CPython 2.7mWindows x86-64

windows_curses-2.0.1-cp27-cp27m-win32.whl (54.7 kB view details)

Uploaded CPython 2.7mWindows x86

File details

Details for the file windows_curses-2.0.1-cp38-cp38m-win_amd64.whl.

File metadata

  • Download URL: windows_curses-2.0.1-cp38-cp38m-win_amd64.whl
  • Upload date:
  • Size: 96.5 kB
  • Tags: CPython 3.8m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

File hashes

Hashes for windows_curses-2.0.1-cp38-cp38m-win_amd64.whl
Algorithm Hash digest
SHA256 d6c1b3de905767abe08bacb34465ac63f5ad9b49d301994717639403b9c9337e
MD5 6fbe69553106b26aaf2e9f397a8c1838
BLAKE2b-256 0582feafb99e8990c06280a1371a2c9dbe93837bd94d04d523dc690b12886905

See more details on using hashes here.

File details

Details for the file windows_curses-2.0.1-cp38-cp38m-win32.whl.

File metadata

  • Download URL: windows_curses-2.0.1-cp38-cp38m-win32.whl
  • Upload date:
  • Size: 84.4 kB
  • Tags: CPython 3.8m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

File hashes

Hashes for windows_curses-2.0.1-cp38-cp38m-win32.whl
Algorithm Hash digest
SHA256 cc454f0acd911fb7c187bf672353ef4774930f38fc9d0da14cbe79f03296393c
MD5 e65ffaddda5c8ddb0afdb92b4d34d32c
BLAKE2b-256 44f57614a7448bc02ad00e088492c227027805e3759d6994cdf39c57244d333c

See more details on using hashes here.

File details

Details for the file windows_curses-2.0.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: windows_curses-2.0.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 77.9 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

File hashes

Hashes for windows_curses-2.0.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e531de5731201583eaf3a5e15a956bd1221e0447479ceed12aab50573757cb33
MD5 9985c91bdb553cd235cfc0c2eef14c2c
BLAKE2b-256 c765ab6acc2a48956e8ae57ad460eca69cfb5ce85cc768a728f5634b693f0d0c

See more details on using hashes here.

File details

Details for the file windows_curses-2.0.1-cp37-cp37m-win32.whl.

File metadata

  • Download URL: windows_curses-2.0.1-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 69.2 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

File hashes

Hashes for windows_curses-2.0.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 ece30053b5340a51c8f1cac4eeaf75bd7faa451c453cd07ef7fda7a9fba17adb
MD5 3997e6dfc46be68422aefe69001edabd
BLAKE2b-256 2f40ae87b59723e0f1f617de414ee4baf5acc8f8f9854f3df080cfe509b2152c

See more details on using hashes here.

File details

Details for the file windows_curses-2.0.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: windows_curses-2.0.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 77.9 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

File hashes

Hashes for windows_curses-2.0.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 dc1d3d314c5b9580b57b5f1e24fd9dc48a306cc6b280182da432cbe05255e0fc
MD5 26a9ce1771cce3fcfddbaf9a376212bc
BLAKE2b-256 e48debaf1d97e4dc5194ef02b84ef124edf7017a833db1b315aded396656260f

See more details on using hashes here.

File details

Details for the file windows_curses-2.0.1-cp36-cp36m-win32.whl.

File metadata

  • Download URL: windows_curses-2.0.1-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 69.2 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

File hashes

Hashes for windows_curses-2.0.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 6b362a2114da068d5127a0c0400423103c163f1d28bc7436350742cdd472e5eb
MD5 750e63da64c3a6fa58a8dc0ea933b510
BLAKE2b-256 e06a13d9ed484e6d4ca4c88316dae46ceca6ed386d63be7eab4f50409be9e459

See more details on using hashes here.

File details

Details for the file windows_curses-2.0.1-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: windows_curses-2.0.1-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 70.1 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

File hashes

Hashes for windows_curses-2.0.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 b9457c3ed1571787dc3835d3bf67dc07a493829d78714757cc63b517133d4a34
MD5 b200f8d86c81f993f7f68887c863e479
BLAKE2b-256 33504d7e286cbb1bc7c819839d6af22a134f698968fab3d3ada8f9d405eacd3f

See more details on using hashes here.

File details

Details for the file windows_curses-2.0.1-cp35-cp35m-win32.whl.

File metadata

  • Download URL: windows_curses-2.0.1-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 60.6 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

File hashes

Hashes for windows_curses-2.0.1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 d3f7ec03ba643fd8aea06ca4466f63ad5e0acedf021670224a3aaddffe5336dd
MD5 6fde7a0e7bb9d795e8300dd506123db0
BLAKE2b-256 c1e0c0e82643b7bbb80bbbfe903af58f11d5c65db991b86e76acb3a733c078b6

See more details on using hashes here.

File details

Details for the file windows_curses-2.0.1-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: windows_curses-2.0.1-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 62.9 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

File hashes

Hashes for windows_curses-2.0.1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 5dfa38206025891f08f2f37aaf78596cfffdd5108f2032450658e5d4a04cf047
MD5 1a4a1d3b95398433681eaba8d37e61d9
BLAKE2b-256 b7c360e24b747c692702fa0748526d9fb001d3cc2384a9c2b9748d8ca9556b69

See more details on using hashes here.

File details

Details for the file windows_curses-2.0.1-cp27-cp27m-win32.whl.

File metadata

  • Download URL: windows_curses-2.0.1-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 54.7 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

File hashes

Hashes for windows_curses-2.0.1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 735ccc1f5d0806f4f670d6517c7aa80e844ca24c9f766f4075f895acccfbebea
MD5 d0fef22de9dd58f7d417dcd068c75964
BLAKE2b-256 e8378ac53053f32b4dbb293c82e4298259b9f3027cda37a293eabef0be613fd0

See more details on using hashes here.

Supported by

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