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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

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

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

File details

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

File metadata

  • Download URL: windows_curses-2.2.0-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.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 389228a3df556102e72450f599283094168aa82eee189f501ad9f131a0fc92e1
MD5 fe9cc97cd9eec7160517b727c4fffbc6
BLAKE2b-256 4f9f8314a79e7999ccdafb6561ed932f017475a3ff11dc39c0f80fc00ee66163

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.2.0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 76.2 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.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9aa6ff60be76f5de696dc6dbf7897e3b1e6abcf4c0f741e9a0ee22cd6ef382f8
MD5 0ec686add00c825c643ea2d8aae467f8
BLAKE2b-256 241aa01bfe49625e3759e6e208573985aaaf9a01de6939a8702a64bf12019079

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.2.0-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.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c4a8ce00e82635f06648cc40d99f470be4e3ffeb84f9f7ae9d6a4f68ec6361e7
MD5 f0d480623128510182368621d7025a80
BLAKE2b-256 09e78770bfbe4e8264c86af7ab1d8320fcfc18fcd4955814ae698fafc985d26a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.2.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 75.9 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.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 84336fe470fa07288daec5c684dec74c0766fec6b3511ccedb4c494804acfbb7
MD5 9e0265e2d83a4dba8508acd8774f8832
BLAKE2b-256 0584d94ae11163653c4e6613a69f2857b47ac78c0e45a6c1515c51dc8c58106f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.2.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 70.0 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.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 c5cd032bc7d0f03224ab55c925059d98e81795098d59bbd10f7d05c7ea9677ce
MD5 8090a3ca39bff06396750a1f03eb7eaa
BLAKE2b-256 306a8cbb2a61263418e693e95465df33438400c28892e8b70e9cd8929363c6d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.2.0-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.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 267544e4f60c09af6505e50a69d7f01d7f8a281cf4bd4fc7efc3b32b9a4ef64e
MD5 72602f4cc25e327a9774988920a3fa36
BLAKE2b-256 6fc50e3f819bdd267720f0588a234eb3f123330670b8be1f6236d6e315b1b50e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.2.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 70.0 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.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 fc0be372fe6da3c39d7093154ce029115a927bf287f34b4c615e2b3f8c23dfaa
MD5 e1d9bc02a8adf183b298f132c9dee1c6
BLAKE2b-256 555fa70ba7f89769bf1d7d10af797347585615125fbfb15d82f8943a14dddf1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: windows_curses-2.2.0-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 61.0 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.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 1452d771ec6f9b3fef037da2b169196a9a12be4e86a6c27dd579adac70c42028
MD5 a3c43912175bb277824d6345f6b4a7fe
BLAKE2b-256 0f41cd43e3e42ad9c367c7ee076fd3e677485d9983fb81268dd990b0855a09d2

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