Skip to content

rd4com/mojo-console-style-print

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

❤️ part of the effort for the community https://github.com/Lynet101/Mojo_community-lib

⚠️ Has not been tested, not to use as-is

some console styling

fn main():
    var t=pp_()
    
    t["clr"] #clear screen
    t["fgblack"]
    t["bgwhite"]
    t | "mojo"
    t["fgwhite"]
    t["bgblack"]
    t | "rocks"
    t["reset"]
    t["fgred"]
    t["bold_on"]
    t["slow_blink"]
    t | "!!!"
    t["reset"]
   
    t() #newline
    t | "normal"

doc

bg is background and fg is foreground

t | String(123) for numbers

t() for new line

  • reset reset to default style
  • clr clear the screen
  • bold_on
  • bold_off
  • italic_on
  • italic_off
  • underline_on
  • underline_off
  • slow_blink
  • fast_blink
  • blink_off
  • invert
  • fgblack
  • fgred
  • fgreen
  • fgyellow
  • fgblue
  • fgpurple
  • fgcyan
  • fgwhite
  • bgblack
  • bgred
  • bgreen
  • bgyellow
  • bgblue
  • bgpurple
  • bgcyan
  • bgwhite

About

🎨 Style the output of the console

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published