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

Do not impose a foreground color for non-ANSI parts #16

Closed laurentpetit closed 8 years ago

laurentpetit commented 9 years ago

Fixes #15

Counterclockwise reuses the AnsiConsole LineStyleListener in its REPL View. What we'd like is for the LineStyleListener to only place colors on escaped chars, and let the default styles managed by the StyledText "as-is".

Currently, the imposed foreground color (black) does not work when the user switches to a Dark Theme (with a dark background).

mihnita commented 9 years ago

I have checked the fix, and it breaks the standard console. It does not honor the console color settings (Preferences -- Run / Debug -- Console) You can try it by changing the standard console colors to something "weird" (i.e. blue background + yellow foreground) and run with the plugin disabled / enabled.