Support for the standard curses module on Windows
Project description
Adds support for the standard Python curses module on Windows. Based on https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses. Uses the PDCurses curses implementation.
PDCurses is compiled with wide character support, meaning get_wch() is available. UTF-8 is forced as the encoding.
Note that PDCurses requires an explicit curses.resize_term(0, 0) call after receiving KEY_RESIZE to get behavior similar to the automatic SIGWINCH handling in ncurses. ncurses reliably fails for resize_term(0, 0), so a compatibility hack is to always call resize_term(0, 0) and ignore any curses.error exceptions.
Maybe it would be better to detect KEY_RESIZE in _cursesmodule.c and call resize_term(0, 0) there, for automatic compatibility…
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for windows_curses-1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 764c45ec084473749c1b0e36f2c81ce6debc108c604a8b9ca98f97b321e688c0 |
|
MD5 | f68d81b67b8ed4aa8f16921729ac56d8 |
|
BLAKE2b-256 | bdfebb10e19712b3a017b885dd91c8b0105dfc07623cee54e019053c0d4382a0 |
Hashes for windows_curses-1.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36c827557a11531d95b36c439d93026d2d61aaa7bed24823ee8f94c837d66be2 |
|
MD5 | e55b886c1e3f00d4280022fe6764d36b |
|
BLAKE2b-256 | e705f59205f6032e93fa097fe485c1c1f6835df6e43e626998cd15c994b55533 |
Hashes for windows_curses-1.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d19357e4e87941d92dbb77ade0166411e964cc8198faffb64fc6bd09d217b5c6 |
|
MD5 | bd2d0a0dc14deb987f12127a004e156a |
|
BLAKE2b-256 | 5579bb893b6c6a6791aa06ff32a0acadfadd1c8b5de767893b80a6f4d909fa33 |
Hashes for windows_curses-1.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5a365f29a1856004d50ad56b8fe48150dd4f469a9f39a07bb0ae04b6c89c710 |
|
MD5 | fce857be76ad84b2d20f7dca79eef9b4 |
|
BLAKE2b-256 | c83e624b2d6a5ac699ce88bfa5a07d05440a97d18dc7119ff260ff9e38076e56 |
Hashes for windows_curses-1.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a853c258d0a55c29f6fa1cace773d901bafdcdda1efc6c3cfd8cf8e3db3f0f2 |
|
MD5 | 713116706583fa61afe00864500cbd87 |
|
BLAKE2b-256 | 6e34c52d5671afb74adf5df912f41ed762ac4f95de36d8df858de8543387fc65 |
Hashes for windows_curses-1.0-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c78a0ef4e96574c55fd912612609684b0c773a81157c6b7ae907e8aa1473dc55 |
|
MD5 | 33e58cfedf6b0afb49ae1a3964eceff4 |
|
BLAKE2b-256 | 6af2ba4b3042ee823a571438c148bdaacca3f53d15e0cadee1a375e43ab53f9a |
Hashes for windows_curses-1.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee9a9bc7bd24a32f6b4118f82e01b192ec749193936b660c6caa57112d2bab48 |
|
MD5 | 8544e38802a2979078f9bcbad6237765 |
|
BLAKE2b-256 | a762c738778de916c93f5a79a1a2355ad9ed38cc0cfa8dd6afed871e4d7cbefa |
Hashes for windows_curses-1.0-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d8b6fd0f0fdf86c8d0cafa96ced4c4393d744194513ab36a732f441bfdcb6c7 |
|
MD5 | 65ecf73d4d51b796432b813fab96dc21 |
|
BLAKE2b-256 | 36bb03dc23ca895483052220ef92a9b76a4cd8c046ff6e75acce32fe62708dd2 |