Does Visual D support colorization output?
via Digitalmars-d-ide
digitalmars-d-ide at puremagic.com
Fri Sep 1 02:08:19 PDT 2017
On Friday, 1 September 2017 at 08:19:43 UTC, Rainer Schuetze
wrote:
>
>
> On 01.09.2017 05:14, EntangledQuanta wrote:
>> I do not get any colorized output from the new dmd. I'm
>> curious if it is on my end or if visual D/visual studio needs
>> to support this?
>
> Visual D needs to redirect the compiler output to display it in
> the output window, and dmd disables colorization output in that
> case (you would end up with control codes when redirecting into
> a text file otherwise). So I don't think it's possible ATM (I'm
> unsure if VS supports this in the output window to begin with).
>
Yes, dmd disables coloring when not attached to an interactive
terminal, however there shouldn't be any control codes on
Windows, as dmd uses the Win32 Conosole API:
https://github.com/dlang/dmd/blob/v2.076.0-rc1/src/ddmd/console.d#L122 so yes, there's no way to get colored error messages outside of the console on Windows.
More information about the Digitalmars-d-ide
mailing list