fusesource / jansi

Jansi is a small java library that allows you to use ANSI escape sequences to format your console output which works even on windows.
http://fusesource.github.io/jansi/
Apache License 2.0
1.12k stars 139 forks source link

Does not work with Eclipse 'ANSI Escape in Console' plugin #102

Closed JesseVelden closed 1 year ago

JesseVelden commented 6 years ago

When I am using the ANSI Escape in Console Eclipse plugin and doing AnsiConsole.systemInstall();, it doesn't output any color codes in the Eclipse console.
Without AnsiConsole.systemInstall(); ANSI Escape characters are parsing fine with the plugin.

hboutemy commented 6 years ago

like #87, how can we detect that the console supports ANSI escape codes? is there any system property?

gnodet commented 1 year ago

like #87, how can we detect that the console supports ANSI escape codes? is there any system property?

You can use -Djansi.force=true system property. This causes other problems with Eclipse, as it expects all ansi sequences to be supported, which is definitely not the case in the eclipse console unfortunately.

Unfortunately, I also can't see any environment variable or system property that could be used to automatically detect the Eclipse environment...