Color your terminal's output

Jens Mueller jens.k.mueller at gmx.de
Wed Dec 14 14:18:11 PST 2011


Iain S wrote:
> Just to add my 2 cents...
> 
> I have been looking for a simple way of altering the Windows terminal
> colour, so I would personally say this is worth including - or at the
> very least converting into a usable header/module/???.
> 
> I am very new to D, so I can't figure out how to make use of the code
> posted on github.  Perhaps it's simpler than I think :)

Hopefully it's simpler than you expect it:
Execute on the Windows command line:
dmd.exe -unittest -run terminal.d

Does it work for you?

You should get colored output. To see how to use it check the unittests.

Jens


More information about the Digitalmars-d mailing list