Skip to main content

A command line user interface tool

Project description

Demo

import joelclui as jclui

jclui.print('2+2=[green]4[/] and 3+3=[bg red]6[/]')
jclui.print('[yellow]Warning. [red][underline]Error[/] [green]Success[/]')
jclui.print('[bg blue][yellow]Colorful[/] Back to normal')

jclui.print('Status: TBD')
jclui.move_up()
jclui.print('[bold]Status: [green]Complete[/]')

Output: Terminal output image

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 console
    • bold
    • 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


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.0.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

joelclui-1.0.1-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page