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.3.2-cp312-cp312-win_amd64.whl (80.5 kB view details)

Uploaded CPython 3.12Windows x86-64

windows_curses-2.3.2-cp312-cp312-win32.whl (70.0 kB view details)

Uploaded CPython 3.12Windows x86

windows_curses-2.3.2-cp311-cp311-win_amd64.whl (80.4 kB view details)

Uploaded CPython 3.11Windows x86-64

windows_curses-2.3.2-cp311-cp311-win32.whl (69.8 kB view details)

Uploaded CPython 3.11Windows x86

windows_curses-2.3.2-cp310-cp310-win_amd64.whl (80.4 kB view details)

Uploaded CPython 3.10Windows x86-64

windows_curses-2.3.2-cp310-cp310-win32.whl (69.8 kB view details)

Uploaded CPython 3.10Windows x86

windows_curses-2.3.2-cp39-cp39-win_amd64.whl (89.1 kB view details)

Uploaded CPython 3.9Windows x86-64

windows_curses-2.3.2-cp39-cp39-win32.whl (76.5 kB view details)

Uploaded CPython 3.9Windows x86

windows_curses-2.3.2-cp38-cp38-win_amd64.whl (88.9 kB view details)

Uploaded CPython 3.8Windows x86-64

windows_curses-2.3.2-cp38-cp38-win32.whl (76.2 kB view details)

Uploaded CPython 3.8Windows x86

windows_curses-2.3.2-cp37-cp37m-win_amd64.whl (70.3 kB view details)

Uploaded CPython 3.7mWindows x86-64

windows_curses-2.3.2-cp37-cp37m-win32.whl (61.3 kB view details)

Uploaded CPython 3.7mWindows x86

windows_curses-2.3.2-cp36-cp36m-win_amd64.whl (70.3 kB view details)

Uploaded CPython 3.6mWindows x86-64

windows_curses-2.3.2-cp36-cp36m-win32.whl (61.3 kB view details)

Uploaded CPython 3.6mWindows x86

File details

Details for the file windows_curses-2.3.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for windows_curses-2.3.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e3f27939f39143c513f444a8c0419b2737e8de55fbe5d63d765992512125366d
MD5 94691a4df6a757d7193a5f65c1f2de1f
BLAKE2b-256 e47f2636983e0429d929a1968be2ce0ded62e5d0ddae3059c14a158b9d4f5fea

See more details on using hashes here.

File details

Details for the file windows_curses-2.3.2-cp312-cp312-win32.whl.

File metadata

File hashes

Hashes for windows_curses-2.3.2-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4546122f5bec2fb46c1706c020d971bcfc4d9a5158372f25ba7472a834b0f165
MD5 345bf436c9dafe52480421c851a888f6
BLAKE2b-256 8d1a2a013dcde0de20f40c608f1b8da31152ed3979e1b8bf3b32bc3d8883c1c3

See more details on using hashes here.

File details

Details for the file windows_curses-2.3.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for windows_curses-2.3.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9b7ecd0f21f643e22a979effff25f62200626bb9853ea8b9aacf0bbcaab0950d
MD5 fb2adc86ab1940c8f40006a2919283e2
BLAKE2b-256 061dab254dcfa0a027e2f94e31407b04ae838975842241a7a2c2a90a8727958d

See more details on using hashes here.

File details

Details for the file windows_curses-2.3.2-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for windows_curses-2.3.2-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 95d2a288af6172270da5ca9225aa99eeae98595c6e90f3574aa9b9f2fc1d2619
MD5 73cce65adedfa2a9d55229bb1a7bd5d4
BLAKE2b-256 8d4fd77ea34a361eecc4791c4b7e1ba941c59288c5a0e601942f8f6dd7ccd9a9

See more details on using hashes here.

File details

Details for the file windows_curses-2.3.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for windows_curses-2.3.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b5e68520c7e92dff72914e4126cadb5b8eb3b6c968d955de6d35ff42306da8c0
MD5 eafb4cfaf36a7b7e276d414afb7152ec
BLAKE2b-256 24f253ee9cdd21df3e63c4076acf15b111df3d85de90a1795c8773fc47326f93

See more details on using hashes here.

File details

Details for the file windows_curses-2.3.2-cp310-cp310-win32.whl.

File metadata

File hashes

Hashes for windows_curses-2.3.2-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0286d35c9a2589731af3cf2b1251635a400f4b61aef2b9c081f6c98e7887a170
MD5 bf7c1eaeb3ab612b255e660d57b980b0
BLAKE2b-256 4d0b0b6ae5c59235a5163ec8f8290e2bb2c6f2521f5d9f2a0cfd6fab5e5e7aef

See more details on using hashes here.

File details

Details for the file windows_curses-2.3.2-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for windows_curses-2.3.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 00d5d000b68db38bd97b6a5b90ee4b4c915a7cef7492fc5aa9ecc7794ee2ca93
MD5 fb07392cabfaefb0a63763536f6297fa
BLAKE2b-256 bddb2b99556dc14ac2c7aae1bdf80690b29e14f6d2c9451feb69cb9874809221

See more details on using hashes here.

File details

Details for the file windows_curses-2.3.2-cp39-cp39-win32.whl.

File metadata

  • Download URL: windows_curses-2.3.2-cp39-cp39-win32.whl
  • Upload date:
  • Size: 76.5 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for windows_curses-2.3.2-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e4ec5245f0c00ede45b033a885511eea80d5928c9bd3ceb523fbfb086370a4df
MD5 cf3788d8ae641b70968667d92972c0a4
BLAKE2b-256 964ec81ac171c6e764989e85e1f68da86f934c5d3b7fd7b90fc6751e476106dc

See more details on using hashes here.

File details

Details for the file windows_curses-2.3.2-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for windows_curses-2.3.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f73bfd283f86d3ac0a72b74307ccc99ea0fd008a732d80db95d31fbafeee3c66
MD5 873df4d6da18dc1a328ae67d404d218b
BLAKE2b-256 f7303c21ebd172508ae21e0fa92c85a8c2086aeed0c17909decfca4d220510af

See more details on using hashes here.

File details

Details for the file windows_curses-2.3.2-cp38-cp38-win32.whl.

File metadata

  • Download URL: windows_curses-2.3.2-cp38-cp38-win32.whl
  • Upload date:
  • Size: 76.2 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for windows_curses-2.3.2-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6bc698058081408685975256f46f570c32f8d7e1f4f82f9d6c66c300c6daff89
MD5 29d1bc08db41517f5e1172d41c296abd
BLAKE2b-256 ed8358bf033c93089c3a34f0786092ce3258543c2604fbb562e891d67a1d00bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 70d8cb4ddad43f695a266f79c7a31d40ac8aee2a17cf8e06ecfd4a71589ad30d
MD5 19c95022361c5a323de9ca795b5a542e
BLAKE2b-256 515a0ab680155474d37a9b8b46b35f5e7cf3691d4e9a8a359f00dedbd208533b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.2-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 61.3 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for windows_curses-2.3.2-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 72ff5d8963fbb3aa662bfced2c5ea22dc3ed58bac827a3bff74a1de5eacdbe57
MD5 c2d068fb195b5e618a8d41b959541f21
BLAKE2b-256 d347f9297390c7f84625ebe5373f011338a3da9934692af2cd748d5ee3cfb930

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 f81294465a67e43ddc50c1b52711b100b002fa1238f87d84d0cf94b785c4fe75
MD5 45d14732068cc9e500bd5ed3ce098f97
BLAKE2b-256 13adb991469fa1172bbfa74e37fe37fcf9471b91b4c21234fc4ad2e216e7a3cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.2-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 61.3 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for windows_curses-2.3.2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 a570f744a62108d024a7775b3b156b2ae2380fc971237c3bd2742341e7151f22
MD5 632d3e9edb0556d6cb573c10d11022c3
BLAKE2b-256 3fea4738fa323ce309bd4e5003223b34b72c8ea793dfdab823ffbe22d5c74f20

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