Coloring terminal output.

Suliman via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Jul 31 10:01:22 PDT 2014


On Thursday, 31 July 2014 at 13:45:45 UTC, ponce wrote:
> 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.

Now, I had used examples from github. Would it's possible to add 
support of color to classical writeln?


More information about the Digitalmars-d-announce mailing list