Skip to content
Printf with colors
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
completions
docs
functions
test
.gitignore
.travis.yml
LICENSE
README.md

README.md

Build Status Slack Room

cprintf

Printf with colors

Install

With fisherman

fisher cprintf

Usage

cprintf "template" $array

cprintf is intended to work as a normal printf. But with a nifty plus, it can accept a special format for coloring.

For foreground colors use the open fg:color tag and close it with its corresponding fg.

Foreground format

For background colors use the open bg:color and end the coloring with its bg ending tag

Background format

It can be combined too used as a regular printf with params

Combined format

You can’t perform that action at this time.