Skip to main content

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.

Metadata

Release files for windows-curses 2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for windows-curses 2.0
File Actions
windows_curses-2.0-cp38-cp38m-win_amd64.whl CPython 3.8 CPython 3.8 pymalloc Windows x86-64 Details for windows_curses-2.0-cp38-cp38m-win_amd64.whl
windows_curses-2.0-cp38-cp38m-win32.whl CPython 3.8 CPython 3.8 pymalloc Windows x86-32 Details for windows_curses-2.0-cp38-cp38m-win32.whl
windows_curses-2.0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details for windows_curses-2.0-cp37-cp37m-win_amd64.whl
windows_curses-2.0-cp37-cp37m-win32.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-32 Details for windows_curses-2.0-cp37-cp37m-win32.whl
windows_curses-2.0-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for windows_curses-2.0-cp36-cp36m-win_amd64.whl
windows_curses-2.0-cp36-cp36m-win32.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-32 Details for windows_curses-2.0-cp36-cp36m-win32.whl
windows_curses-2.0-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details for windows_curses-2.0-cp35-cp35m-win_amd64.whl
windows_curses-2.0-cp35-cp35m-win32.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-32 Details for windows_curses-2.0-cp35-cp35m-win32.whl
windows_curses-2.0-cp27-cp27m-win_amd64.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-64 Details for windows_curses-2.0-cp27-cp27m-win_amd64.whl
windows_curses-2.0-cp27-cp27m-win32.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-32 Details for windows_curses-2.0-cp27-cp27m-win32.whl

Total release size: 711.0 kB

Release files / windows_curses-2.0-cp38-cp38m-win_amd64.whl

Download URL windows_curses-2.0-cp38-cp38m-win_amd64.whl
Size 95.2 kB
Tags CPython 3.8 CPython 3.8 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
469fd775defec495991bb0a284bde909ce2f64e9ce8276facc0fa5ab9d1c9227
BLAKE2b-256 checksum
How to use checksums
2b58d43b0f12279f4460b68298b1c8aa896ea85f2c94ad7e6520870d511fcdb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

Release files / windows_curses-2.0-cp38-cp38m-win32.whl

Download URL windows_curses-2.0-cp38-cp38m-win32.whl
Size 83.3 kB
Tags CPython 3.8 CPython 3.8 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
189fd16872a08fcda6d61a9744ba1dfa44c8e8df96029917356a9158f496db7d
BLAKE2b-256 checksum
How to use checksums
d94d0be81199588ca891213d0b0a383a6b9029d5a0a384a86721eb43e3581999
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

Release files / windows_curses-2.0-cp37-cp37m-win_amd64.whl

Download URL windows_curses-2.0-cp37-cp37m-win_amd64.whl
Size 76.5 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
ca6c87e362fd0c3be6f29ff8683d1cb02b421941a24e1b64234f6aff4d8c77bc
BLAKE2b-256 checksum
How to use checksums
c3aea99fca4772c287502763ec0d97f7d37136dc08781b4356b166978d1f2cd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

Release files / windows_curses-2.0-cp37-cp37m-win32.whl

Download URL windows_curses-2.0-cp37-cp37m-win32.whl
Size 68.1 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
fd486778f6497d30056ffc31ecc8fda99ebe1880e0f8cee2dc46c43c631e99b1
BLAKE2b-256 checksum
How to use checksums
198a72f37623f9d7738597b648bf7339294c215e61d91a08dd332b376d9fd13a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

Release files / windows_curses-2.0-cp36-cp36m-win_amd64.whl

Download URL windows_curses-2.0-cp36-cp36m-win_amd64.whl
Size 76.4 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
d672564aeb751001a9834a3943318384279018ae3fea37f130277c9ad0ea932f
BLAKE2b-256 checksum
How to use checksums
0dc745bf2a8f517a6c2ee7eacf44cfc4e2520abb73931cadbee94acabfdbedc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

Release files / windows_curses-2.0-cp36-cp36m-win32.whl

Download URL windows_curses-2.0-cp36-cp36m-win32.whl
Size 68.1 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
153339b5a842f4ce5479ed70f69e50d42e7b8a5c3926d9625de24fe2fbcf446a
BLAKE2b-256 checksum
How to use checksums
d55981acf6ba40963420df990b4bd8eb5c73f245cf57114d3083a7460c35b851
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

Release files / windows_curses-2.0-cp35-cp35m-win_amd64.whl

Download URL windows_curses-2.0-cp35-cp35m-win_amd64.whl
Size 68.7 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
64da65ab6f7862692f6e7ecd81d899a6c2cbd54160a879b2a13135e3f1883e2b
BLAKE2b-256 checksum
How to use checksums
6d2881abd2f248f82aae84bd74fb1bfe14cce22f8d0d2d43cbeb64ab417c5a11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

Release files / windows_curses-2.0-cp35-cp35m-win32.whl

Download URL windows_curses-2.0-cp35-cp35m-win32.whl
Size 59.5 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
8cf06b42e68d681f4c688ff26ac301650f312ab3eeee3228c10fe6fcd34b84c4
BLAKE2b-256 checksum
How to use checksums
864b651e0d3738f6e857d898efb84261f0b9ae1b9a08e78a0c25547593334bfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

Release files / windows_curses-2.0-cp27-cp27m-win_amd64.whl

Download URL windows_curses-2.0-cp27-cp27m-win_amd64.whl
Size 61.6 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
06b60893a6a608aa4dafe3d5b1bcfb5fdc9760a3cda1d3011fbf0b5fa2d5f433
BLAKE2b-256 checksum
How to use checksums
a4e72b28c8ab22de618c0e6454c37a2bdc2b7c3162a842a25c7bb7bccb6f90f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

Release files / windows_curses-2.0-cp27-cp27m-win32.whl

Download URL windows_curses-2.0-cp27-cp27m-win32.whl
Size 53.5 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
f86ab6bc72e0e4fbff83b55c7bf524616c63dc097aa470db811d6b7f36135772
BLAKE2b-256 checksum
How to use checksums
6b145168b156a37f4b6e54c4ba83c88194f10093aec6b4beef9a5e13a157b999
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.1 CPython/3.6.5

Security for windows-curses 2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page