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.1.0-cp38-cp38-win_amd64.whl (88.6 kB view details)

Uploaded CPython 3.8Windows x86-64

windows_curses-2.1.0-cp38-cp38-win32.whl (75.9 kB view details)

Uploaded CPython 3.8Windows x86

windows_curses-2.1.0-cp37-cp37m-win_amd64.whl (69.9 kB view details)

Uploaded CPython 3.7mWindows x86-64

windows_curses-2.1.0-cp37-cp37m-win32.whl (60.9 kB view details)

Uploaded CPython 3.7mWindows x86

windows_curses-2.1.0-cp36-cp36m-win_amd64.whl (78.6 kB view details)

Uploaded CPython 3.6mWindows x86-64

windows_curses-2.1.0-cp36-cp36m-win32.whl (69.9 kB view details)

Uploaded CPython 3.6mWindows x86

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5mWindows x86

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

Uploaded CPython 2.7mWindows x86-64

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

Uploaded CPython 2.7mWindows x86

File details

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

File metadata

  • Download URL: windows_curses-2.1.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 88.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for windows_curses-2.1.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 261fde5680d1ce4ce116908996b9a3cfb0ffb03ea68d42240f62b56a9fa6af2c
MD5 83a62c4e12a5603d84fae1eed3638ddc
BLAKE2b-256 790e306ba8239d6e4162372b0a7d6a2e5d8bc2ee80177950dfc6b991cef706ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.1.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 75.9 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for windows_curses-2.1.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 66034dc9a705d87308cc9ea90836f4ee60008a1d5e2c1d34ace627f60268158b
MD5 94d38955cc67112c0f5442197fda8e54
BLAKE2b-256 436ce048a541123b74a653b503ebdd0fcf26455e31a101f8a5d810c6f1a54c11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.1.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 69.9 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for windows_curses-2.1.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 ff8c67f74b88944d99fa9d22971c05c335bc74f149120f0a69340c2c3a595497
MD5 0a5122ae1e6c0b72844a8cbff4caa610
BLAKE2b-256 cf6b19851f32a41e6ff5985bdabf531aa19786eb6fa8ad825e3a82fc1625383e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.1.0-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 60.9 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for windows_curses-2.1.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 97084c6b37b1534f6a28a514d521dfae402f77dcbad42b14ee32e8d5bdc13648
MD5 9910e4b644573c3b0cf7d1473e499465
BLAKE2b-256 a0297a2d9185cd547ff372605c6a3058cf61d4e897064ff40e3cfb5047f213a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.1.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 78.6 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for windows_curses-2.1.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 8ba7c000d7ffa5452bbd0966b96e69261e4f117ebe510aeb8771a9650197b7f0
MD5 d0aa7a76ac127865c2854d7f18328d75
BLAKE2b-256 06ab054e2865acae24ef80813d4ffabd6cf4de2031add862d8fa59c3d8f9f402

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.1.0-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 69.9 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for windows_curses-2.1.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 669caad3ae16faf2d201d7ab3b8af418a2fd074d8a39d60ca26f3acb34b6afe5
MD5 824eb0c8d4924d70b0a7c61834cb629b
BLAKE2b-256 ec3dcef98bc73fd49fa5c42d7a1e13ebebded06515966ca1e3fe386a74058bc7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.1.0-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/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for windows_curses-2.1.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 cfe64c30807c146ef8d094412f90f2a2c81ad6aefff3ebfe8e37aabe2f801303
MD5 32e98c5b3fd9a698a02b95174e67d181
BLAKE2b-256 3048163e6c81189d230ec638384247be5b666361f397a3c67102fa25c96cf5ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.1.0-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 60.6 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for windows_curses-2.1.0-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 73bd3eebccfda55330783f165151de115bfa238d1332f0b2e224b550d6187840
MD5 01df3b33459d1b175033f9b07596e963
BLAKE2b-256 db6a4e67bbf707824afbbc6d0f5f1dc81592b601b735f2e8d02ea2e8428f62af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.1.0-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/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for windows_curses-2.1.0-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 9e474a181f96d60429a4766145628264e60b72e7715876f9135aeb2e842f9433
MD5 a750d07835603a386646eb105bd50324
BLAKE2b-256 112c2b6572aad9fc95e6f8dbb6226c13c57350b001de2897c927902f2b27373b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.1.0-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 54.7 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.8.0

File hashes

Hashes for windows_curses-2.1.0-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 89a6d973f88cfe49b41ea80164dcbec209d296e0cec34a02002578b0bf464a64
MD5 ec7b8cef0e15bb48aeb674f4be6871d7
BLAKE2b-256 8f3fb78be987bac5156033000b958e87f00719a36fb95dc3b0b4a86264c7ab04

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