[RFC] ColorD

Dejan Lekic dejan.lekic at gmail.com
Mon Oct 22 04:04:51 PDT 2012


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.


More information about the Digitalmars-d mailing list