1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/core
Simon Marchi 1981d5905d Remove ANSI escape sequences from lines before handing them to output parsers
If a build tool (e.g. gcc) outputs colored text, the ANSI escape
sequences will prevent the output parsers from matching the lines.  This
patch makes the ErrorParserManager remove them before handing the
strings to the parsers.

I tested that this works well with the ANSI console plugin [1], which
allows displaying colors in the console window.

Note that I stole the regex from this SO post [2], I hope it's trivial
enough that it doesn't cause any IP problem.

[1] https://marketplace.eclipse.org/content/ansi-escape-console
[2] https://stackoverflow.com/questions/25189651/how-to-remove-ansi-control-chars-vt100-from-a-java-string

Change-Id: I0d6a25723be4008600acecb8595865bcb4f4abc1
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-03-27 11:52:09 -04:00
..
org.eclipse.cdt.core Remove ANSI escape sequences from lines before handing them to output parsers 2017-03-27 11:52:09 -04:00
org.eclipse.cdt.core.linux Remove profiles that helped skip ppc64le 2017-02-08 09:51:43 -05:00
org.eclipse.cdt.core.linux.ppc Update version to 9.3.0 2016-11-15 20:32:51 -05:00
org.eclipse.cdt.core.linux.ppc64 Update version to 9.3.0 2016-11-15 20:32:51 -05:00
org.eclipse.cdt.core.linux.ppc64le Update version to 9.3.0 2016-11-15 20:32:51 -05:00
org.eclipse.cdt.core.linux.x86 Update version to 9.3.0 2016-11-15 20:32:51 -05:00
org.eclipse.cdt.core.linux.x86_64 Update version to 9.3.0 2016-11-15 20:32:51 -05:00
org.eclipse.cdt.core.macosx Update version to 9.3.0 2016-11-15 20:32:51 -05:00
org.eclipse.cdt.core.native releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
org.eclipse.cdt.core.tests Bug 513429 - Defer instantiation of variable templates with dependent arguments 2017-03-24 00:52:14 -04:00
org.eclipse.cdt.core.win32 Update version to 9.3.0 2016-11-15 20:32:51 -05:00
org.eclipse.cdt.core.win32.x86 Update version to 9.3.0 2016-11-15 20:32:51 -05:00
org.eclipse.cdt.core.win32.x86_64 Update version to 9.3.0 2016-11-15 20:32:51 -05:00
org.eclipse.cdt.ui Remove unused OpenTypeDialog 2017-03-24 23:23:29 -04:00
org.eclipse.cdt.ui.tests Bug 512260 - Organize Includes should prefer .h and .hpp files to files 2017-02-15 20:02:20 -08:00
pom.xml releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00