On Sunday, 21 October 2012 at 19:28:21 UTC, Robik wrote:
Hello,
I would like to introduce ColorD, small library that allows to
simply manipulate console output colors, both on Windows and
Posix operating systems. It also supports font styles such as
underline and strikethrough(Posix feature only).
Simple example:
import std.stdio, colord;
void main()
{
setConsoleColors(Fg.red, Bg.blue);
writeln("Red text on blue background.");
resetConsoleColors(); // Bring back initial state
}
Feedback welcome.
GitHub: https://github.com/robik/ColorD
Regards.
This is very much related to the ycurses and dcurses projects,
and I strongly suggest you work with people behind those projects
and come up with a nice/flexible/robust "console" API/package for
D.