Skip to content
A minimalistic console coloring library.
D Ruby Emacs Lisp
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.
source/colored
.dir-locals.el
.gitignore
.projectile
.travis.yml
LICENSE
dub.sdl
dub.selections.json
rakefile.rb
readme.org

readme.org

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

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

import colored;
unittest {
  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.

You can’t perform that action at this time.