DUB colored output proposal/showcase

gdelazzari giacky98.mail at gmail.com
Fri Jun 8 17:04:34 UTC 2018


On Friday, 8 June 2018 at 16:33:29 UTC, Basile B. wrote:
> On Friday, 8 June 2018 at 16:20:12 UTC, gdelazzari wrote:
>> On Friday, 8 June 2018 at 16:11:27 UTC, Basile B. wrote:
>>> While this look okay please in the initial PR don't forget to 
>>> add code to deactivate colors when DUB will be piped.
>>
>> Sure, I won't forget about that. On Linux (and I guess also 
>> MacOS) it should be enough to check if stdout is a tty 
>> (isatty() from C std) or not, while I don't know how that 
>> could be done on Windows. Do you have any idea?
>
> Certainly. look at how DMD does that ;)

I had a look at it, really helpful, thanks!


More information about the Digitalmars-d mailing list