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.0-cp38-cp38m-win_amd64.whl (95.2 kB view details)

Uploaded CPython 3.8mWindows x86-64

windows_curses-2.0-cp38-cp38m-win32.whl (83.3 kB view details)

Uploaded CPython 3.8mWindows x86

windows_curses-2.0-cp37-cp37m-win_amd64.whl (76.5 kB view details)

Uploaded CPython 3.7mWindows x86-64

windows_curses-2.0-cp37-cp37m-win32.whl (68.1 kB view details)

Uploaded CPython 3.7mWindows x86

windows_curses-2.0-cp36-cp36m-win_amd64.whl (76.4 kB view details)

Uploaded CPython 3.6mWindows x86-64

windows_curses-2.0-cp36-cp36m-win32.whl (68.1 kB view details)

Uploaded CPython 3.6mWindows x86

windows_curses-2.0-cp35-cp35m-win_amd64.whl (68.7 kB view details)

Uploaded CPython 3.5mWindows x86-64

windows_curses-2.0-cp35-cp35m-win32.whl (59.5 kB view details)

Uploaded CPython 3.5mWindows x86

windows_curses-2.0-cp27-cp27m-win_amd64.whl (61.6 kB view details)

Uploaded CPython 2.7mWindows x86-64

windows_curses-2.0-cp27-cp27m-win32.whl (53.5 kB view details)

Uploaded CPython 2.7mWindows x86

File details

Details for the file windows_curses-2.0-cp38-cp38m-win_amd64.whl.

File metadata

  • Download URL: windows_curses-2.0-cp38-cp38m-win_amd64.whl
  • Upload date:
  • Size: 95.2 kB
  • Tags: CPython 3.8m, Windows x86-64
  • Uploaded using 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

File hashes

Hashes for windows_curses-2.0-cp38-cp38m-win_amd64.whl
Algorithm Hash digest
SHA256 469fd775defec495991bb0a284bde909ce2f64e9ce8276facc0fa5ab9d1c9227
MD5 e4067f7f6731e0244b62e8d051527efe
BLAKE2b-256 2b58d43b0f12279f4460b68298b1c8aa896ea85f2c94ad7e6520870d511fcdb5

See more details on using hashes here.

File details

Details for the file windows_curses-2.0-cp38-cp38m-win32.whl.

File metadata

  • Download URL: windows_curses-2.0-cp38-cp38m-win32.whl
  • Upload date:
  • Size: 83.3 kB
  • Tags: CPython 3.8m, Windows x86
  • Uploaded using 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

File hashes

Hashes for windows_curses-2.0-cp38-cp38m-win32.whl
Algorithm Hash digest
SHA256 189fd16872a08fcda6d61a9744ba1dfa44c8e8df96029917356a9158f496db7d
MD5 79c849de76f7d09361a6f3e8b27b5cf7
BLAKE2b-256 d94d0be81199588ca891213d0b0a383a6b9029d5a0a384a86721eb43e3581999

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 76.5 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using 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

File hashes

Hashes for windows_curses-2.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 ca6c87e362fd0c3be6f29ff8683d1cb02b421941a24e1b64234f6aff4d8c77bc
MD5 a951af85bdc5050ee1bb3a9ab8e7174d
BLAKE2b-256 c3aea99fca4772c287502763ec0d97f7d37136dc08781b4356b166978d1f2cd1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.0-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 68.1 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using 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

File hashes

Hashes for windows_curses-2.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 fd486778f6497d30056ffc31ecc8fda99ebe1880e0f8cee2dc46c43c631e99b1
MD5 3cf9a733c1205fb67930262f07f0d6a1
BLAKE2b-256 198a72f37623f9d7738597b648bf7339294c215e61d91a08dd332b376d9fd13a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 76.4 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using 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

File hashes

Hashes for windows_curses-2.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 d672564aeb751001a9834a3943318384279018ae3fea37f130277c9ad0ea932f
MD5 42aa151cdb368014c918c3714a8e5896
BLAKE2b-256 0dc745bf2a8f517a6c2ee7eacf44cfc4e2520abb73931cadbee94acabfdbedc9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.0-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 68.1 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using 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

File hashes

Hashes for windows_curses-2.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 153339b5a842f4ce5479ed70f69e50d42e7b8a5c3926d9625de24fe2fbcf446a
MD5 fb8f3dcde57d40c0c5b591237f6d2ea1
BLAKE2b-256 d55981acf6ba40963420df990b4bd8eb5c73f245cf57114d3083a7460c35b851

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.0-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 68.7 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using 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

File hashes

Hashes for windows_curses-2.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 64da65ab6f7862692f6e7ecd81d899a6c2cbd54160a879b2a13135e3f1883e2b
MD5 af7250f3d99774b8eb7d333c71590e70
BLAKE2b-256 6d2881abd2f248f82aae84bd74fb1bfe14cce22f8d0d2d43cbeb64ab417c5a11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.0-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 59.5 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using 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

File hashes

Hashes for windows_curses-2.0-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 8cf06b42e68d681f4c688ff26ac301650f312ab3eeee3228c10fe6fcd34b84c4
MD5 37c893ba2d8665590346de315e0b7527
BLAKE2b-256 864b651e0d3738f6e857d898efb84261f0b9ae1b9a08e78a0c25547593334bfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.0-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 61.6 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using 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

File hashes

Hashes for windows_curses-2.0-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 06b60893a6a608aa4dafe3d5b1bcfb5fdc9760a3cda1d3011fbf0b5fa2d5f433
MD5 276f41d880a618841891d815f271a693
BLAKE2b-256 a4e72b28c8ab22de618c0e6454c37a2bdc2b7c3162a842a25c7bb7bccb6f90f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.0-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 53.5 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using 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

File hashes

Hashes for windows_curses-2.0-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 f86ab6bc72e0e4fbff83b55c7bf524616c63dc097aa470db811d6b7f36135772
MD5 c643fda419d81b04bb59d369bb30d873
BLAKE2b-256 6b145168b156a37f4b6e54c4ba83c88194f10093aec6b4beef9a5e13a157b999

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