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.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d41ab2cb21c989573cea85f84c92bcfc81069a459d67bfe17f4b76761f3293d1 |
|
MD5 | 76639f4b0eb44235b546daabb736a044 |
|
BLAKE2b-256 | 0474a02556478d50e7ce579cc88f3f1bb3d8ced8e453f69c6798cbcd27f8af0b |
Hashes for windows_curses-1.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a60a4d1c8956d71c3418e0211fee54ba9d71401a2c9eca2e4835c50a4ff71628 |
|
MD5 | 28749e5abcf30331ba238a0a604bd89b |
|
BLAKE2b-256 | 8a22bab7306a86fb655802f173ac17b2d2d8f70b73e5603c4a412551cb7339b1 |
Hashes for windows_curses-1.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92c7e33250b0e0e8b30840cf16001c0ba040c3ab03f27e0b46b28fafc5d36e24 |
|
MD5 | 2c9c6d3cf2dd2a56241425e09d423d49 |
|
BLAKE2b-256 | 1e75e390d806df17b30f3617561dc1d6782d68ca608244cdee570019e3e56452 |
Hashes for windows_curses-1.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b26624fc31b4af4a9fca4be785ca7c8c46588759eb4d428354725dc7cdf7a596 |
|
MD5 | 93aed238195d7fd7cc8a2d496921b006 |
|
BLAKE2b-256 | 31626663525da15d56bda02b9b5199dffc89b208fba13ef5bc059375fd365aeb |
Hashes for windows_curses-1.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e06aa2d2aae615e03a2a7f57cb3d3a63fae565ffbfbbdafdc315ed6a52b54ee2 |
|
MD5 | 098ce3ab440588c6154516b0284645bc |
|
BLAKE2b-256 | f402ea8ddf69a7135d3c1b731afb4e09ef4ef7bbf71595716feee174732a2ac5 |
Hashes for windows_curses-1.1-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dc09c1485b0e6191a68d93629faa80e8f6bc7f32ba2537906928dd92efe0972 |
|
MD5 | 72e0794c0c631e7db398f6fac581cf88 |
|
BLAKE2b-256 | 1741ad1fa3fd3d2a755ef627a9bad2e897a1489daf1490ea703f85912736a9b8 |
Hashes for windows_curses-1.1-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8e743c310f657e0cb453ec2ad2058975b00cd77bcd7993b68bdacfe22b40236 |
|
MD5 | edc951450143ca68bd1b4face3fb22b7 |
|
BLAKE2b-256 | 4c55501663881f4b14298068c0995a062660f102e31e4ca65479ebf88e967d65 |
Hashes for windows_curses-1.1-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c723a3dd4d7dc51955e33d5a8424e9bf4483a7edfa55b3e8ed045c357643041f |
|
MD5 | 642075eb118a607999ed4bed74c9905a |
|
BLAKE2b-256 | 7ba7cd57d9c87663c4f334ff6140e46fbf08e24a5923572543187b19a55702e5 |