1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 11:55:40 +02:00
Find a file
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
.mvn releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
build Bug 514244: ability to add custom wizard page prior project creation one 2017-03-27 12:24:26 +01:00
codan releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
core Remove ANSI escape sequences from lines before handing them to output parsers 2017-03-27 11:52:09 -04:00
cross Bug 511801 - Remote launch: validate that the remote exec file is absolute 2017-03-15 16:30:35 -04:00
debug Bug 480047 - Include apache http client libraries for use with p2 transport 2017-03-19 22:36:22 -04:00
doc Add missing reference to GDB Debugging Preferences (for DSF preferences) 2016-12-05 21:47:25 +00:00
dsf Generify ListenerList. 2017-03-23 09:25:24 +02:00
dsf-gdb Bug 379225: Address FindBugs issues for DSF-GDB 2017-03-23 13:59:28 -04:00
jtag releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
launch Fixed broken compilation. 2017-03-08 02:01:43 -04:00
llvm lldb: Add a few missing rm.done() 2017-03-24 22:27:07 -04:00
lrparser Don't use _ as identifier 2017-03-24 16:56:27 -04:00
memory releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
native Bug 509118. Extend regexp to detect devices in /dev for Linux. 2017-03-23 16:32:08 -04:00
qt Bug 512262 - Remove the unnecessary ICPPEvaluationOwner interface 2017-02-17 01:14:35 -05:00
releng Adjust path exclusion when deleting repo so that it doesn't delete rcp 2017-03-19 19:48:13 -04:00
remote releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
testsrunner releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
toolchains/arduino releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
upc releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
util releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
visualizer releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
windows releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
xlc releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
.gitignore Ignore NFS-created files. 2012-11-08 13:34:54 -08:00
pom.xml Update Maven build machinery. 2017-02-14 10:54:17 +02:00