CursesUtils
Functions
menu.menu(stdscr, title, options)
Pulls up a select menu.
stdscr: The screen to write to.title: The title of the menu.options: A collection of strings to choose from.
Returns the index of the selected item, or None if the user chooses to quit.
number_select.number_select(stdscr, title, num_range, start = None)
Pulls up a number selection menu.
stdscr: The screen to write to.title: The title of the selection.num_range: A range object for valid numbers.start: The starting selected number. Defaults tonum_range's min value.
Returns the number selected, or None if the user chooses to quit.
keys.set_key_codes(key_name, key_codes)
Sets a key's function by name.
key_name: The key name to set.key_codes: A collection of key codes (as returned bystdscr.getkey()) to use.
Make sure to set keys before using them! Internally, CursesUtils uses the following keys:
menu_up(for navigating UP through menus)menu_down(for navigating DOWN through menus)menu_confirm(for CONFIRMING on menus)menu_cancel(for QUITTING on menus)
keys.get_key_codes(key_name)
Gets a key's codes by name.
key_name: The key name to get the codes of.
Returns the key codes of the given key, or None if it doesn't exist. See set_key_codes for more information.
keys.get_next_key(stdscr)
Gets the next key and saves it.
stdscr: The screen to write to.
keys.get_current_key()
Gets the current pressed key.
keys.get_key_with_timeout(stdscr, timeout)
Waits for a timeout, returning immediately on a key. Saves the key, saving None if no key was pressed.
stdscr: The screen to write to.timeout: The timeout in milliseconds.
keys.wait_for_key(stdscr)
Waits for a key, but doesn't consume it.
stdscr: The screen to write to.
keys.is_pressed(key_name)
Checks if the given key is the current pressed key by name.
key_name: The key name to check.
wrapper.wrapper(func)
Wraps a function to set up and shut down, also wrapping using curses.wrapper.
func: The function to wrap.
Metadata
Release files for curses-utils 0.0.13
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 |
|---|---|---|---|---|
| curses_utils-0.0.13.tar.gz | 3.3 kB | Without provenance | Details for curses_utils-0.0.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| curses_utils-0.0.13-py3-none-any.whl | Python 3 | none | any | Details for curses_utils-0.0.13-py3-none-any.whl |
Total release size: 7.8 kB
Release files / curses_utils-0.0.13.tar.gz
| Download URL | curses_utils-0.0.13.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4a361b8df72dfca304502d5a63235e9b6943f6e188ea0eded35b0c6f20623cd
|
|
BLAKE2b-256 checksum How to use checksums |
5a0fa9129e55a5b32c4b5765d051f3ec6218750cb4488f152025d23851c5dd92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/3.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.12
|
Release files / curses_utils-0.0.13-py3-none-any.whl
| Download URL | curses_utils-0.0.13-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0aec9e059c42c1d12ce140c43198903e7b13cd2768e220be90087d0bdf5a13e0
|
|
BLAKE2b-256 checksum How to use checksums |
a2390cfbde60c5404794d9de7730e0e2f55099734c36abaaacf1dc30670730f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/3.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.12
|
Security for curses-utils 0.0.13
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.