Coloring terminal output.

ponce via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Jul 31 06:45:44 PDT 2014


On Thursday, 31 July 2014 at 12:09:41 UTC, Suliman wrote:
> On Thursday, 31 July 2014 at 09:37:25 UTC, ponce wrote:
>> On Monday, 14 July 2014 at 19:57:32 UTC, Suliman wrote:
>>>> I've made a simple port of ruby's colorize library for D.
>>>> I'd greatly appreciate any feedback. Windows isn't supported,
>>>> yet.
>>>
>>> Cool! Would it be hard to add windows support?
>>
>> Windows support added. It relies on a partial ANSI/VT100 
>> interpreter to allow colors to stay in the string.
>
>
> I tried to build on Windows example and get on console next:
>
> D:\code\d>appcolor.exe
> ←[34mThis is blue←[0m

You have to use cwrite/cwritef/cwriteln/cwritefln, and it's not 
yet in the examples.


More information about the Digitalmars-d-announce mailing list