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.

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

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

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1a2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0525fee9c8973a8b41bc6caa84f581e3a701afe6713adf52ddcc88b6c13d92bc
MD5 b4bf83d99b5dd3eafcf770d0d5c22c66
BLAKE2b-256 1bb1b1e01d69e7654fb2411ff9563666ada9f261e0c0d002698fffd05c50fa69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1a2-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 49f42c7434605a11d67fae80ec8756e87d2ca57bf76335723d7ba3baf11d4226
MD5 6d1228537a57c0dccc7c8bb646e09e46
BLAKE2b-256 a40ef403b024130107cb0ebf8c10d1c812e214384c5f8b66fb2b003dae356828

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1a2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c09e1a75fc79f5c361a7998544ac5427eb5188990adbf91716f40f13e263036b
MD5 8cf076ef271b1bceac291a6da655d670
BLAKE2b-256 f595f73fe865b50b58b6e29324a2af606f1f6a7336d4fb7e66425ca80c1656f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1a2-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 dbc65104964217930e81fb891cdbd08413c494afadd7634e9aee3986feba6950
MD5 818aa3bd132395f13751c9e4e0b4aa94
BLAKE2b-256 f71460060e2775eee53e3e2fdc0f5902576ab085b0d021b5da458ef2a101d71f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1a2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b7619b92c721d4b06b44a466ba9d24c70c75223325155d630bfe4ae08924db06
MD5 8e4dd2bd8704233d74a1551b9315975e
BLAKE2b-256 b2c428710cf01f6e943666153d8668d4de85586c43bdccbf51b66fc43ef1bf5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1a2-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 39baa85f82161e98298fe30ad002c540a1064f7df3c635fefe9b513c60b3a24c
MD5 b587cd2d43e2f49833412ced88f4e034
BLAKE2b-256 95b8f0c15e73a54151937f3e1b4a5558ff15ba668ae91b572ac3db7b3949da30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1a2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a0580d10b979581c5e374201e2245c273e568826c93f754a64057b679504a425
MD5 d2c47417e1afc79d66949669063ae0fd
BLAKE2b-256 9cac12bb081a102f5f5a7863515c3609f48301e5c98c49b9200e6dcf9a7670db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1a2-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 665db838106150b12cbec294c3647e44c228fe6d18a49ed26e9d46b60d183fb9
MD5 c8d188e5d629f1693142edab6d0c7ae4
BLAKE2b-256 73ba7d14544935a89b2cc52c6164ae0b93bc1cee9b1721ebb9bde69618dfbf07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1a2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 2ccf0a8f59b97326db05c25cee92acc1b1c419b3c420f1abf727b4af74542c20
MD5 9553a71a0a71b68da4cf87e556ed205a
BLAKE2b-256 51245924fc41ba1fb30b28b6ed29e929215df522ab6b6c8684ff9a181431484a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1a2-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 9bb8d7dc4182637922debc26f7e9574f72ef4cc68879c4c2875e1224f3a4440e
MD5 03ec329d75bc546455372ad388a46aee
BLAKE2b-256 f1d2c462b949f766bec04ce199d8f669b8e873378a4fdb3f5d79495a3ea0d139

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1a2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 d0c9c47f73272ee6adb2741f71e10a69fdf87476d305584d5388aa9bd9535b01
MD5 a4bbf19e331811a2de89cc5c1b3fd678
BLAKE2b-256 f871809b2b879409ab57ccafd2fcf38b76315de0ea87cb9624703dd13c01bbce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for windows_curses-2.3.1a2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 0f105fdf18104717eb331f27496dc349bdac2016c55e870053b05d707ee6299c
MD5 85c3ff1a4e56a1dc8b4d1b45506dda0e
BLAKE2b-256 da2b22edeb7fdd6b072327cc53b82a8fe31fc7fd164e9b1cdb40d0906d48a641

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