mihnita / ansi-econsole

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

set TERM enviroment #34

Closed Zardoz89 closed 6 years ago

Zardoz89 commented 6 years ago

It would be nice if ANSI console has a option to setup a environment var TERM with something.

I have my colour appender for log4j that uses TERM to detect if the console output accepts ANSI escape sequences, and would be nice if I don't need to setup it manually for every project.

mihnita commented 6 years ago

That might be nice, indeed. I will give it a try!

mihnita commented 6 years ago

Unfortunately too messy do do...

There is no official way to change the environment for a running Java application, you can only set it at launch time. So this plugin would have to be a Launcher for that. But it feels too intrusive to make it a Launcher only for this feature.

You can set the TERM environment in the launcher (Run Configurations -- your configuration -- the Environment tab).

Also, it looks like for me the application inherits the environment I have when I start Eclipse.

Zardoz89 commented 6 years ago

Since I installed Eclipse Photon on my Kubuntu, looks that isn't necessary to setup a TERM environment. Looks that Eclipse it's receiving a TERM environment var and the apps are inheriting. On any case, thanks!