colored is yet another terminal coloring lib for dlang. compared to others the source is really minimalistic, dependencies include only unit_threaded for testing.
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.