mihnita / ansi-econsole

Eclipse plugin that understands ANSI escape sequences to color the Eclipse console output.
http://www.mihai-nita.net/java/
Other
90 stars 25 forks source link

Plugin Broken with Eclipse 2020.09 and Ubuntu 18.04 #54

Closed gbonneau-hardent closed 3 years ago

gbonneau-hardent commented 3 years ago

I tried with Eclipse Version: 2020-09 (4.17.0), Build id: 20200910-1200 the plugin. After installation I ran the testing application AnsiConTest. The console output doesn't yield any colors. I got <<<>>>. If I copy and paste the content of the debug/run console the characters are:

<<<>>>

mihnita commented 3 years ago

This is as expected, and I don't think it behaved differently in other Eclipse versions. If it did, it was a bug, and I would like to learn about it.

All the sequences used are either of type H ("Cursor Position") or f ("Horizontal Vertical Position") https://en.wikipedia.org/wiki/ANSI_escape_code#Terminal_output_sequences

This never worked.

The only sequences that trigger color changes are the ones ending in m ("Select Graphic Rendition") See https://en.wikipedia.org/wiki/ANSI_escape_code#SGR

mihnita commented 3 years ago

The test in AnsiConTest that produces that sequence is testCursorMovementConsumed And it does as expected: "consumes" cursor movement escape sequences, leaving only the <<<>>> visible.

To see colors you can un-comment the other tests:

// allTestScrolling();
// allKindOfTests();
// allTest256();