Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow value tty for system property picocli.ansi #846

Closed
remkop opened this issue Oct 31, 2019 · 0 comments
Closed

Allow value tty for system property picocli.ansi #846

remkop opened this issue Oct 31, 2019 · 0 comments

Comments

@remkop
Copy link
Owner

remkop commented Oct 31, 2019

Currently users can force picocli to emit ANSI escape characters by setting system property picocli.ansi to true (or false to never emit ANSI escape chars).

This does not take into account whether the end user is using an interactive console.

If the application output is redirected, the application should not emit ANSI escape characters.

This ticket proposes that picocli should interpret a system property picocli.ansi value of tty to mean: emit ANSI escape characters if on a TTY (interactive console).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant