Doing it Right¶. Let's install a real version of Python. Before installing Python, you'll need to install GCC. GCC can be obtained by downloading Xcode.
![]() Latest version
Released:
Support for the standard curses module on Windows
Project description
Adds support for the standard Python
curses module on Windows. Based onthese wheels. Uses thePDCurses curses implementation.
The wheels are built from this GitHubrepository.
PDCurses is compiled with wide character support, meaning
get_wch() isavailable. UTF-8 is forced as the encoding.
Starting from windows-curses 2.0, in the name of pragmatism, these wheels (butnot Gohlke's) include a hack to make resizing work for applications developedagainst ncurses without Python code changes: Whenever
getch() , getkey() , orget_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). Thiscommitimplements the hack.
To add the same hack in Python code (which is harmless, and needed if you wantresizing to work with older windows-curses versions or with Gohlke's wheels),call
curses.resize_term(0, 0) after receiving KEY_RESIZE , and ignore anycurses.error exceptions. ncurses reliably fails and does nothing forresize_term(0, 0) , so this is safe on *nix.
Please tell me if the
resize_term(0, 0) hackery causes you any trouble.
Release historyRelease notifications
2.1.0
2.0.1
2.0
1.1
1.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for windows_curses-2.1.0-cp27-cp27m-win32.whl
Hashes for windows_curses-2.1.0-cp27-cp27m-win_amd64.whl
Hashes for windows_curses-2.1.0-cp35-cp35m-win32.whl
Hashes for windows_curses-2.1.0-cp35-cp35m-win_amd64.whl![]()
Hashes for windows_curses-2.1.0-cp36-cp36m-win32.whl
Hashes for windows_curses-2.1.0-cp36-cp36m-win_amd64.whl
Hashes for windows_curses-2.1.0-cp37-cp37m-win32.whl
Hashes for windows_curses-2.1.0-cp37-cp37m-win_amd64.whl
Hashes for windows_curses-2.1.0-cp38-cp38-win32.whl
Hashes for windows_curses-2.1.0-cp38-cp38-win_amd64.whl
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |