Curses Plus
Extension library to curses
How To Install
Use pip3 install cursesplus
on Linux or py -m pip install cursesplus
on Windows
SPECIAL INSTRUCTIONS FOR WINDOWS
For Windows you need to also install windows-curses or related program
to provide the basic curses functionality
What's New?
3.20.2
- Fix several bugs with the savefile selector
- Savefile selector now returns None on cancel rather than "NONE"
Documentation
transitions.py
transitions contains many transitions to add animations to your program
__exec(func,args)
NOTE: THIS IS AN INTERNAL FUNCTION, IT IS NOT MEANT TO BE USED BY THE COMMON USER
This executes func(args)
horizontal_bars(stdscr,func_to_call=None,args=(),speed=1)
This is a replacement function to old's type zero. It fills the screen from the top down with horizontal white bars. It then replaces them with black bars in the same configuration.
-
stdscris a curses window object -
func_to_callis a function. If it is set to none, no function is called -
argsis a tuple. The tuple will be passed to the function as arguments -
speedis an int. A higher value increases the animation speed. A lower value (0 - 1) makes it slower. If you set speed to 0, the program will crash.
random_blocks(stdscr,func_to_call=None,args=(),speed=1)
This is a replacement for old's type one transition. It fills random characters of the screen with blocks until the whole screen is covered, then it removes it in the same fashion.
-
stdscris a curses window object -
func_to_callis a function. If it is set to none, no function is called -
argsis a tuple. The tuple will be passed to the function as arguments -
speedis an int. A higher value increases the animation speed. A lower value (0 - 1) makes it slower. If you set speed to 0, the program will crash.
vertical_bars(stdscr,func_to_call=None,args=(),speed=1)
This is an all new transition. It functions like horizontal bars except they are vertical and go left to right.
-
stdscris a curses window object -
func_to_callis a function. If it is set to none, no function is called -
argsis a tuple. The tuple will be passed to the function as arguments -
speedis an int. A higher value increases the animation speed. A lower value (0 - 1) makes it slower. If you set speed to 0, the program will crash.
utils.py
Utils.py Contain a series of non-ui utility functions. By non-ui I mean that it does not show a screen and it is non-interactive. It is meant to enhance the creation of custom menus.
fill_line(stdscr,line,colour)
This function fills row line with the colour colour.
-
stdscris a curses window object -
lineis an int. It is the row number you wish to fill in -
colouris a curses colour. Usecursesplus.set_colour()for this
hidecursor()
This function hides the console cursor
showcursor()
This function shows the console cursor
constants.py
constants.py contains a series of constants such as colours and special lines.
** This documentation is not yet complete. There are many more features than this **
Metadata
Release files for cursesplus 3.20.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cursesplus-3.20.2.tar.gz | 22.8 kB | Without provenance | Details for cursesplus-3.20.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cursesplus-3.20.2-py3-none-any.whl | Python 3 | none | any | Details for cursesplus-3.20.2-py3-none-any.whl |
Total release size: 46.1 kB
Release files / cursesplus-3.20.2.tar.gz
| Download URL | cursesplus-3.20.2.tar.gz |
|---|---|
| Size | 22.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6806c2c82b5c5453149ca4bfb429ce7e14eb59e1bdbdb8d4f1b6a48a8d2c8959
|
|
BLAKE2b-256 checksum How to use checksums |
88bb50242a5c57411f0de2901d2f5df5e2d4596572a27beea9dc49a79e51740f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / cursesplus-3.20.2-py3-none-any.whl
| Download URL | cursesplus-3.20.2-py3-none-any.whl |
|---|---|
| Size | 23.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c0a45fa0565ff086328bad7aa12e95f4bb94841ce8638e45bd2909d758db329
|
|
BLAKE2b-256 checksum How to use checksums |
531effe26a2f65670496e4f65c0b2ec50702c6264e6e186d17e1060a660438e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for cursesplus 3.20.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.