Does Visual D support colorization output?
Rainer Schuetze via Digitalmars-d-ide
digitalmars-d-ide at puremagic.com
Fri Sep 1 01:19:43 PDT 2017
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).
>
> Also, Visual Studio doesn't allow capturing of the console output and
> for programs that terminate quickly(due to an error, say), it is
> difficult to know what happened. Is it possible for Visual D to capture
> the standard output and error output and dump it to a window? The output
> window or intermediate window would be nice.
If you don't run it via the debugger, you can enable "Pause when program
finishes" on the "Debugging" options page.
There is also "Redirect stdout to output window" for the VS debug
engines, but it doesn't seem to work anymore (just tried in VS2015). I
suspect that happened when VS switched to a new debug engine.
You could still set a breakpoint at the end of main (for the usual exit)
and enable "break when exception is thrown" (see bottom of
http://rainers.github.io/visuald/visuald/Debugging.html)
More information about the Digitalmars-d-ide
mailing list