dblock/jenkins-ansicolor-plugin — Issue #3: AnsiColor interferes with console notes
Author: jhermann
Created: 2012-01-30 17:45:21+00:00
State: open

Console notes use the "conceal" ANSI sequence to embed special markup into the log stream, see

https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/console/ConsoleNote.java

(note the PREAMBLE_STR and POSTAMBLE_STR constants). Right now, this means if you activate the AnsiColor plugin, the embedded data (i.e. "ha:base64-coded-data") will become visible as text, which makes reading the log quite hard.

Thus, AnsiColor should pass through sequences of «CSI»8m....«CSI»0m unchanged.

An example of such a sequence is this:
```
00005a0: 0a5b 494e 464f 5d20 1b5b 386d 6861 3a41 .[INFO] .[8mha:A
00005b0: 4141 4159 422b 4c43 4141 4141 4141 4141 AAAYB+LCAAAAAAAA
00005c0: 4142 6238 3561 4274 6269 4951 536d 6a4e ABb85aBtbiIQSmjN
00005d0: 4b55 3450 302b 764a 4c45 3475 3167 7650 KU4P0+vJLE4u1gvP
00005e0: 6a65 784c 4456 507a 7864 4547 7676 6d5a jexLDVPzxdEGvvmZ
00005f0: 2b58 3735 5a65 6b4c 6c4f 5666 7654 6a63 +X75ZekLlOVfvTjc
0000600: 3846 504a 6761 4769 6949 474b 6169 4735 8FPJgaGiiIGKaiG5
0000610: 5079 3834 7679 6356 4431 6e43 4131 5379 Py84vycVD1nCA1Sy
0000620: 4141 426a 4343 4642 5143 5632 374f 6a59 AABjCCFBQCV27OjY
0000630: 4141 4141 413d 3d1b 5b30 6d2d 2d2d 2062 AAAAA==.[0m--- b
0000640: 7569 6c64 6e75 6d62 6572 2d6d 6176 656e uildnumber-maven
0000650: 2d70 6c75 6769 6e3a 312e 303a 6372 6561 -plugin:1.0:crea
0000660: 7465 2028 6465 6661 756c 7429 2040 2073 te (default) @ s
0000670: 7461 6765 322d 6d61 7665 6e2d 706c 7567 tage2-maven-plug
0000680: 696e 202d 2d2d 0a in ---.
```