/cprintf

Printf with colors

Primary LanguageShellMIT LicenseMIT

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