Skip to content

gizmomogwai/colored

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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;
}

Api

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