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.2.0a1-cp39-cp39-win_amd64.whl (88.7 kB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

windows_curses-2.2.0a1-cp38-cp38-win_amd64.whl (88.6 kB view details)

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

windows_curses-2.2.0a1-cp37-cp37m-win_amd64.whl (70.1 kB view details)

Uploaded CPython 3.7mWindows x86-64

windows_curses-2.2.0a1-cp37-cp37m-win32.whl (61.1 kB view details)

Uploaded CPython 3.7mWindows x86

windows_curses-2.2.0a1-cp36-cp36m-win_amd64.whl (70.1 kB view details)

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

File details

Details for the file windows_curses-2.2.0a1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: windows_curses-2.2.0a1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 88.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for windows_curses-2.2.0a1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 262ce578d7be5046c7056d5a42ad7be9a58fa3f0cda4f2e8bc2b927277a1477b
MD5 1ef3e9dc709f89eaa0b1b47c96206f08
BLAKE2b-256 bf98aada6ceea5d7829d577a0dc7e9c9976f8abe4c16bfe5bc8bf0f1673042c7

See more details on using hashes here.

File details

Details for the file windows_curses-2.2.0a1-cp39-cp39-win32.whl.

File metadata

  • Download URL: windows_curses-2.2.0a1-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for windows_curses-2.2.0a1-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0617f3c71ce7bc9ae04c0dc8b93da96674898700b4405249fe678191c181b814
MD5 bf8782ecf25e304683865fb2faca536d
BLAKE2b-256 cbc07855fe752c9d8f7f3201c5e22b77d08150bc75e229aa4abd6ff375fee5db

See more details on using hashes here.

File details

Details for the file windows_curses-2.2.0a1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: windows_curses-2.2.0a1-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/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for windows_curses-2.2.0a1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 56ee513fe70de40815fa3099a7b8b183cff86f8a58f8a0cffa7d94db2a8ccd81
MD5 dbd74e37488078741600e442958e0c2c
BLAKE2b-256 f680b46fdf8f28c3cfbc4eb0ffd64b0ab57060137a8ca5ea25b3e6897e97454e

See more details on using hashes here.

File details

Details for the file windows_curses-2.2.0a1-cp38-cp38-win32.whl.

File metadata

  • Download URL: windows_curses-2.2.0a1-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for windows_curses-2.2.0a1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 710bc799059b0e0cda2728ed1c7b1cbee6c30d0657201ab54efd395f6152666a
MD5 35165718e1859fd5c460b77d4191dff5
BLAKE2b-256 bab4bb21c03bd4cfa4dc6d7edc6a7ec8fc7c2cffa6ea356dbc2060e82967a508

See more details on using hashes here.

File details

Details for the file windows_curses-2.2.0a1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: windows_curses-2.2.0a1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 70.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for windows_curses-2.2.0a1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 7d729a569e84887e82f3ab8f61250b6a5b2bff1ece2fdc087a2b73791008d818
MD5 3997bbc8dcf299260c1cd2e9d5ae0210
BLAKE2b-256 36d931553e94c0958aabd53c278774ace98603314fe682518af27d7752c9bc58

See more details on using hashes here.

File details

Details for the file windows_curses-2.2.0a1-cp37-cp37m-win32.whl.

File metadata

  • Download URL: windows_curses-2.2.0a1-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 61.1 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for windows_curses-2.2.0a1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 2bed2a8f638360448e5b6c311d356bc76e421856a0e10e7f470c4235d65ee6ff
MD5 1a94ba40fb014591acfd98461b6db24d
BLAKE2b-256 eec846cbfb074ce27a2889552fd42696eaec31340bc0f50d00dc98463ea67882

See more details on using hashes here.

File details

Details for the file windows_curses-2.2.0a1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: windows_curses-2.2.0a1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 70.1 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for windows_curses-2.2.0a1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 cf957feef6ce3b2ece2dddbb207412ddbf7e76300f79a58f2b26fe41173dab9d
MD5 ff96b1ca228815b5535fb5a06336c385
BLAKE2b-256 ab2c576441205b4fb70274220d1684bd504d103ad66ad033e89e45a1ef9e441d

See more details on using hashes here.

File details

Details for the file windows_curses-2.2.0a1-cp36-cp36m-win32.whl.

File metadata

  • Download URL: windows_curses-2.2.0a1-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for windows_curses-2.2.0a1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 402765785c4b118ff19bf11238b3f9cdb59ed9c4d0bd8d5499402ef7c8bd804d
MD5 6ea22c60ff7cb4af9bfd82a79f659080
BLAKE2b-256 3191c7dedd5339b102663a6f9127a455eb333dd9ad04f33f35ac34681d9d2b9c

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