Skip to content

Support cli tools which feature detect ansi color support #750

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

Open
staabm opened this issue Oct 8, 2020 · 0 comments
Open

Support cli tools which feature detect ansi color support #750

staabm opened this issue Oct 8, 2020 · 0 comments
Labels
enhancement New feature or request future Feature work that we haven't prioritized

Comments

@staabm
Copy link

staabm commented Oct 8, 2020

Describe the enhancement
When running php based cli tools within a action, the color detection support does not work.
Most php cli tools are based on symfony/console which relies on a stream_isatty check to auto activate ansi color support.

I would expect GithubActions to support a running context which makes tools aware that ansi colors are supported and so they realize it and automatically use it.

My examples all mention php, but I guess a lot of tools (even non php) use a isatty-like check for feature detection.

Code Snippet
Use a php based project which contains a composer.json and run composer install.
Atm this does not support coloring and we need to force enable coloring with composer install --ansi which is tedious

Additional information
Also reported to composer at composer/composer#9269

@staabm staabm added the enhancement New feature or request label Oct 8, 2020
@ruvceskistefan ruvceskistefan added the future Feature work that we haven't prioritized label Mar 17, 2022
yurkom added a commit to openl-tablets/openl-tablets that referenced this issue Jun 28, 2022
yurkom added a commit to openl-tablets/openl-tablets that referenced this issue Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request future Feature work that we haven't prioritized
Projects
None yet
Development

No branches or pull requests

2 participants