Skip to content

gizmomogwai/colored

Repository files navigation

Colored

https://img.shields.io/github/tag/gizmomogwai/colored.svg?style=flat-square https://img.shields.io/travis/gizmomogwai/colored/master.svg?style=flat-square https://img.shields.io/codecov/c/github/gizmomogwai/colored/master.svg?style=flat-square https://img.shields.io/readthedocs/pip.svg?style=flat-square https://img.shields.io/dub/l/colored.svg?style=flat-square https://img.shields.io/dub/v/colored.svg?style=flat-square https://img.shields.io/dub/dw/colored.svg?style=flat-square

Intro

colored is yet another terminal coloring lib for dlang. compared to others the source is really minimalistic, dependencies include only unit_threaded for testing.

Usage

unittest {
  import colored;
  import std.stdio;
  "test".green.onRed.writeln;
}

The api allows only setting a foreground and backgroundcolor once. This is done by returning dedicated types after each operation.

About

A minimalistic console coloring library.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published