It would be great if jline could automagically detect whether it is being used in an environment (process) which isn't connected to a terminal and thus not produce any ansi output. I think querying System.console() would be the key here.
I'm opening this issue but will also be submitting a pull request with a patch I have made.
It would be great if jline could automagically detect whether it is being used in an environment (process) which isn't connected to a terminal and thus not produce any ansi output. I think querying System.console() would be the key here.
I'm opening this issue but will also be submitting a pull request with a patch I have made.