A command line user interface tool
Project description
Joel Command Line User Interface (jclui)
A command line user interface tool.
Demo
from joelclui import j
j.print('2+2=[green]4[/] and 3+3=[bg red]6[/]')
j.print('[yellow]Warning. [red][underline]Error[/] [green]Success[/]')
j.print('[bg blue][yellow]Colorful[/] Back to normal')
j.print('Status: TBD')
j.move_up()
j.print('[bold]Status: [green]Complete[/]')
Output:
Colors
Wrap on of the modifiers below in square brackets [] to change the printed text's style.
- Colors
bold
green
yellow
red
blue
black
orange
purple
cyan
lightgray
darkgray
pink
lightred
lightgreen
lightblue
lightcyan
success
warn
danger
- Backgrounds
bg black
bg red
bg green
bg orange
bg blue
bg purple
bg cyan
bg lightgray
- Styles
[/]
clears the consolebold
underline
Arrow navigation methods:
Optional parameter of how many times to move.
jclui.move_up() #moves cursor up one line
jclui.move_right()
jclui.move_down()
jclui.move_left()
jclui.move_up(5) #Up 5 lines
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 Distribution
joelclui-1.1.0.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file joelclui-1.1.0.tar.gz
.
File metadata
- Download URL: joelclui-1.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e71e5e88adaddb9cfe7ef458cde917ce2b21e0690b5c22aa92d7ed296fe50ad |
|
MD5 | 831e8847f2b6de2a531f3651fe1dc961 |
|
BLAKE2b-256 | 095c86afd24fb5784c969eb59ae19f684a2e4419a531c5bf01d56b7b55886732 |
File details
Details for the file joelclui-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: joelclui-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a25a0505e554f800ebce3e90d69d0292e8f02c0501de6e0f7b824c12598a0fb |
|
MD5 | e5485948ac2fa5d39123fca42e40f1e9 |
|
BLAKE2b-256 | 13f675be55283018537bc6f221c6e9486bf4412653204e171b2d94e159db34c7 |