All colors
import termcolor; import std.stdio : write, writeln; import std.traits : EnumMembers; writeln("Written in ", C.green.fg, "green color and ", C.blackDark.bg, "dark background", resetColor, "!"); // show all color combinations foreach(f; EnumMembers!C) { foreach(b; EnumMembers!C) { write(f.fg, b.bg, "foo", resetColor(), " "); } writeln(); }
Hackish library to colorize standard output.