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.1-cp311-cp311-win_amd64.whl (80.4 kB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

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

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 395656bfe88d6f60cb18604605d423e0f2d1c3a8f550507dca5877a9d0b3a0f3
MD5 88b36cee221b3ca707aa1645fac9ea9c
BLAKE2b-256 c396ee89bb39f7dcc1adf5cb617834e2aa7c3b6d3b48507049f50f9cbc0040d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 25e7ff3d77aed6c747456b06fbc1528d67fc59d1ef3be9ca244774e65e6bdbb2
MD5 533789a4acea125af63497f3f3d0d2b6
BLAKE2b-256 513a957e1b3a693178eee8effdbfb58080005b2700a7c0a6b0b970b41ac19b40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8b541520895649c0835771775034a2b4edf36da3c3d9381c5022b5b4f9a5014e
MD5 24de7301ff42616cd3343f38e054473f
BLAKE2b-256 9b2c3d3921c4c2eb9cb7cdd4dba5923847708003b4ae4063507dd9998976d6ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2644f4547ae5124ce5129b66faa59ee0995b7b7205ed5e3920f6ecfef2e46275
MD5 b2661ad5431137b5bde348b2ad799515
BLAKE2b-256 92bcf2ad33242e67aeeaddc13f66ab5262c3dd2c3bf6bbfc6e760a1823bafb4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 85675de4ae7058348140daae83a8a7b81147a84ef9ab699307b3168f9490292f
MD5 91c13136c9ae493090a050e3cc8efd22
BLAKE2b-256 63575ed9bfbbcbb9c34cdc5f578a57a087200fd09c70b30d78236e4deacf48b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.1-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.1 CPython/3.9.15

File hashes

Hashes for windows_curses-2.3.1-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 aab7e28133bf81769cddf8b3c3c8ab89e76cd43effd371c6370e918b6dfccf1b
MD5 7d0751b50f6874f30140064243e96e2b
BLAKE2b-256 9c4e12985716cf210a0f883dfd1498d1ae81cc4d5243c489fcc1662f77037bc3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a551aaa09d6ec28f64ade8e85fd0c52880c8e9114729a79c34803104e49bed71
MD5 a9b90fa8f449c8f7de9a5df5265863a5
BLAKE2b-256 ebe6ee1325bd12c75a1db7f18c562a7575038ed274a30907ecc9f50cc84caa12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.1-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.1 CPython/3.9.15

File hashes

Hashes for windows_curses-2.3.1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5c55ebafdb402cfa927174a03d651cd1b1e76d6e6cf71818f9d3378636c00e74
MD5 57d27ac6ef88f7d990b91a776a506a43
BLAKE2b-256 53c78ec3ec23f37dfe96ccde45af0400ff6f7ff5492d86558a32978fcd9410dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f9a7fcd03934e40238f9bbeddae51e3fdc442f28bca50afccdc521245ed39439
MD5 486e73fc2734289d3951108b3988b7c5
BLAKE2b-256 7f2e74bf3f508f5498d899f85047c84115db30c7d02644fc7e02762b95f07c4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.1-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.1 CPython/3.9.15

File hashes

Hashes for windows_curses-2.3.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 9cd0ba6efde23930736eff45a0aa0af6fd82e60b4787a46157ef4956d2c52b06
MD5 6957f4f890c9e9620374fcbe36d8b9d3
BLAKE2b-256 05963373c0db049e8d6c8bbbcebf9b1e1aaa776c0f935cfaf08887b710003951

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 59856b41676c4b3eb527eb6b1478803d4dc92413b2e63aea762407807ffcd3ac
MD5 0ae357393d3a097e8d19cf1b7d67c9bc
BLAKE2b-256 e427030122a0b80af944c6dba95f5da1de291031a15cb5b65165db6e9421624d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.3.1-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.1 CPython/3.9.15

File hashes

Hashes for windows_curses-2.3.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 6ea8e1c4536fee248ee3f88e5010871df749932b7e829e2f012e5d23bd2fe31d
MD5 e1dcc7b208c814c9e063bc4330140375
BLAKE2b-256 0384dc2712e5eb38db71de01f5e00ae69f67dc1714a6300a2ffb22d38f91f936

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