<div dir="ltr">What colors were you expecting? There is very little color formatting within the diagnostic message itself. From the code, it will bold text when the level is Error, Fatal, or Warning, but not for Note. After that, there is color for the template diffing, but besides that I don't believe there is any other color.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 7, 2014 at 12:50 PM, Alejandro Jimenez <span dir="ltr"><<a href="mailto:whilealex@gmail.com" target="_blank">whilealex@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi<div>I am trying to print an error message from clang API with colored format,</div><div><br></div><div>
>From StringRef message filled with diagnostics data I try</div><div><br></div><div>clang::TextDiagnostic::printDiagnosticMessage(outs(), clang::DiagnosticsEngine::Level::Error, message, 0, console->width, true);<br>
</div><div><br></div><div>But I dont see any colors on the screen buffer, I have look around, but could not find examples of this task, does anybody know how to print colored errors and warnings given only the StringRef buffer?</div>
<div><br></div><div>Thanks</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Alejandro</div></font></span></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>