A command line user interface tool
Project description
JoelCLUI, the Easiest Way to Stylize Text and Move the Cursor in Python.
Installation
pip3 install joelclui
Demo
import joelclui as 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:
Style
Wrap one of of the modifiers below in square brackets [] to change the printed text's style.
- Text Color
bold
green
yellow
red
blue
black
orange
purple
cyan
lightgray
darkgray
pink
lightred
lightgreen
lightblue
lightcyan
success
warn
danger
- Background Color
bg black
bg red
bg green
bg orange
bg blue
bg purple
bg cyan
bg lightgray
- Styles
bold
underline
- Fun
rainbow
[/]
removes formatting/clears
Cursor navigation
Optional parameter of how many times to move.
j.move_up() #moves cursor up one line
j.move_right()
j.move_down()
j.move_left()
j.move_up(5) #Up 5 lines
j.clear() #clears screen
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.18.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file JoelCLUI-1.1.18.tar.gz
.
File metadata
- Download URL: JoelCLUI-1.1.18.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d68b42df7e8e8da6bbb1799dc19cc02767e21cf10099fc941a967dc7021f07be |
|
MD5 | 126807a4a8c3fdfed805a8a358889c98 |
|
BLAKE2b-256 | ffe273c18927620f851c023f177cca7df059ea53027faa758134d3d9fa204c96 |
File details
Details for the file JoelCLUI-1.1.18-py3-none-any.whl
.
File metadata
- Download URL: JoelCLUI-1.1.18-py3-none-any.whl
- Upload date:
- Size: 6.3 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 | d7c67255561d809a0f6699c860e53464496ae8b995e1704bce0e01d2ac622e9d |
|
MD5 | 456c5af278c100d591b0a1fb864f5904 |
|
BLAKE2b-256 | 62283869ad5538c0af784a634692dd84e14d5185a3992b4fe8b88767482bb0b2 |