GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - shellm-org/format: Format your output with style and color.

BranchesTags
Open more actions menu

Latest commit

 

History

26 Commits
26 Commits

Folders and files

NameName
Last commit message
Last commit date
cmp
cmp
 
 
demo
demo
 
 
lib
lib
 
 
man
man
 
 
templates
templates
 
 
tests
tests
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.gitlab-ci.yml
.gitlab-ci.yml
 
 
.shellman.json
.shellman.json
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
logo.png
logo.png
 
 
package.sh
package.sh
 
 

Repository files navigation

Style and Colors

Format your messages with style and colors.

pipeline status gitter chat

format is a function designed to help you add style and colors in your terminal messages.

Demo

Demo generated with termtosvg.

Installation

Installation is done with basher:

basher install gitlab.com/shellm/format

Usage

format can be used several ways:

  1. by directly giving the string to print:
format bold blue onWhite -- " info "
  1. by first printing the style and colors, then multiple strings:
format bold red
echo "error: this is not supposed to do that,"
echo "please turn off your computer."
format reset
  1. with subprocesses, to use different styles and colors in the same string:
echo "$(format strike)easy$(format bold) very easy$(format reset) to use!"
  1. with printf:
printf "%s warning %s your computer will leave the room in 3...2...1...\n" \
  "$(format bold black onIntenseYellow)" \
  "$(format reset)"

About

Format your output with style and color.

Resources

Readme
ISC license

Contributing

Contributing
Activity
Custom properties

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.