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.

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.0-cp310-cp310-win_amd64.whl (88.2 kB view details)

Uploaded CPython 3.10Windows x86-64

windows_curses-2.3.0-cp310-cp310-win32.whl (75.1 kB view details)

Uploaded CPython 3.10Windows x86

windows_curses-2.3.0-cp39-cp39-win_amd64.whl (88.9 kB view details)

Uploaded CPython 3.9Windows x86-64

windows_curses-2.3.0-cp39-cp39-win32.whl (76.3 kB view details)

Uploaded CPython 3.9Windows x86

windows_curses-2.3.0-cp38-cp38-win_amd64.whl (88.8 kB view details)

Uploaded CPython 3.8Windows x86-64

windows_curses-2.3.0-cp38-cp38-win32.whl (76.0 kB view details)

Uploaded CPython 3.8Windows x86

windows_curses-2.3.0-cp37-cp37m-win_amd64.whl (70.2 kB view details)

Uploaded CPython 3.7mWindows x86-64

windows_curses-2.3.0-cp37-cp37m-win32.whl (61.2 kB view details)

Uploaded CPython 3.7mWindows x86

windows_curses-2.3.0-cp36-cp36m-win_amd64.whl (70.2 kB view details)

Uploaded CPython 3.6mWindows x86-64

windows_curses-2.3.0-cp36-cp36m-win32.whl (61.1 kB view details)

Uploaded CPython 3.6mWindows x86

File details

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

File metadata

  • Download URL: windows_curses-2.3.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 88.2 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.7

File hashes

Hashes for windows_curses-2.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7a35eda4cb120b9e1a5ae795f3bc06c55b92c9d391baba6be1903285a05f3551
MD5 9c7ad53b384727ddc60f2e27b3d2d174
BLAKE2b-256 a1926ae63ea0bd6fc2c4589c105627a61fb03eb1cf6fbc1e612f9501b490b5e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 75.1 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.7

File hashes

Hashes for windows_curses-2.3.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a3a63a0597729e10f923724c2cf972a23ea677b400d2387dee1d668cf7116177
MD5 42447cf8823823f4b32009cd1728878f
BLAKE2b-256 6e2d1a8db3a90978865accefdd4bbc03ef29983661d2dcc866257eb8cef071a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 88.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.7

File hashes

Hashes for windows_curses-2.3.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c860f596d28377e47f322b7382be4d3573fd76d1292234996bb7f72e0bc0ed0d
MD5 e26e483a0ccf0ba8104f6a9c424d1b28
BLAKE2b-256 061013c999a86fe7ba59314cba1a4895b5d5d3145a7dcfab85009616d93e4ddc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 76.3 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.7

File hashes

Hashes for windows_curses-2.3.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 935be95cfdb9213f6f5d3d5bcd489960e3a8fbc9b574e7b2e8a3a3cc46efff49
MD5 f6c3a09ed936cad688178ce9200bea63
BLAKE2b-256 d0bb572d605fdac10ca3359d2f43dd5b807e5044f65d561b4043cbb0d8dc0f65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 88.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.7

File hashes

Hashes for windows_curses-2.3.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cc5fa913780d60f4a40824d374a4f8ca45b4e205546e83a2d85147315a57457e
MD5 189888dd508e15e44326d2fc3b52a324
BLAKE2b-256 25db3d3e31f3edaf3b339312b96769fa6b91b44aea05be2b3b13171f9e05d82a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 76.0 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.7

File hashes

Hashes for windows_curses-2.3.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fbc2131cec57e422c6660e6cdb3420aff5be5169b8e45bb7c471f884b0590a2b
MD5 a665bb220028e2879cd607ea250fccb5
BLAKE2b-256 23aec027f63340a2647d54245b93326add14c9362d1d3d24e87dc8540af97f0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 70.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.7

File hashes

Hashes for windows_curses-2.3.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e913dc121446d92b33fe4f5bcca26d3a34e4ad19f2af160370d57c3d1e93b4e1
MD5 a333102b4476fd4fb8db3154e8c6b3eb
BLAKE2b-256 d3eab88b0fac8d9cc790e019bdb4cfc89a704a436296ff04d41ed367d98c3005

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.0-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 61.2 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.7

File hashes

Hashes for windows_curses-2.3.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 d5cde8ec6d582aa77af791eca54f60858339fb3f391945f9cad11b1ab71062e3
MD5 1b17993230d19770dac3519701d695f0
BLAKE2b-256 31bdc0ea22f685c9c2f89cf2b0af42d4c203070576397c511a49b35d7adbe9ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 70.2 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.7

File hashes

Hashes for windows_curses-2.3.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 170c0d941c2e0cdf864e7f0441c1bdf0709232bf4aa7ce7f54d90fc76a4c0504
MD5 242a6cdb2a722eb31fd07de975793a83
BLAKE2b-256 135eb2989a69467b4f7b53c170175be7f37f1b9f819387112b5891fbc1dd5184

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.0-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 61.1 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.7

File hashes

Hashes for windows_curses-2.3.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 4d5fb991d1b90a41c2332f02241a1f84c8a1e6bc8f6e0d26f532d0da7a9f7b51
MD5 34c0b6f58677bc881369a0285ece6c13
BLAKE2b-256 6bb6562c7773e3707584debfe1a572d7f516be7a9ed14f4694fde7e98e1d8e39

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