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
[/]
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
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.12.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for joelclui-1.1.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cd2509e9de1107ccbf082e7af0cc3ff7cd7ab2dca48835091d1dfb71066ec7f |
|
MD5 | 984ea7b6a0e37ccb4b696f8e9d806f5c |
|
BLAKE2b-256 | 1e4f900779de8461cb3f6edd0c4d4b7fc7a4b1f4231bc0d5577db2ce4f20721d |