In a post from a few weeks ago, someone mentioned terminal colors. Currently, I have one that works with bash (cmd pending) at https://github.com/carlor/dcaflib.

Example code:

import dcaflib.ui.terminal;

import std.stdio;

void main() {
    fgColor = TermColor.RED;
    writeln("this is red!");
    fgColor = TermColor.BLUE;
    writeln("this is blue!");
}

Reply via email to