Skip to content

jfv-opensource/ansi-colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ANSI-COLOR

Helper to simplify usage of ansi color escape codes inside scripts.

Usage

Usage: ansi-color [off|test|help|version] [text color] [background color] [style]

Example

ansi-color green yellow bold
  change style to get a green bold text on a yellow background

ansi-color red
  change style to get a red text

ansi-color off
  return to default terminal values

ansi-color test
  display a colored text to validate the console compatibility

Parameters

--off|off
  return to default values

--test|test
  display a colored text to validate the console compatibility

--version|version
  display version and quit

--help|help
  display help and quit

text color and background color may be one of the known colors:
    - green
    - black
    - red
    - brown
    - blue
    - purple
    - cyan
    - lightgray
    - white
    - darkgray
    - lightred
    - lightgreen
    - yellow
    - lightblue
    - lightpurple
    - lightcyan

style may be one of the following:
    - normal
    - bold
    - underlined
    - blinking
    - reverse

Report bugs on https://github.com/jfv-opensource/ansi-colors/issues

About

Bash tool to use ansi colors in shell script easily

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published