Skip to content

composer always prints escape codes #157

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
danielcavanagh opened this issue Feb 26, 2025 · 1 comment
Open

composer always prints escape codes #157

danielcavanagh opened this issue Feb 26, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@danielcavanagh
Copy link

danielcavanagh commented Feb 26, 2025

hiya

composer always prints escape codes when used through tooling, even when stdout isn't a terminal

i believe this is due to always passing --ansi at:

cmd: 'composer --ansi',

escape codes only make sense when printing to a terminal, not when stdout has been redirected to a file or in command substitution. i'm trying to use the output of composer in a shell script and the escape codes are causing havoc

normally you can pass --no-ansi to disable escape codes in situations where it's needed but --ansi apparently always wins over --no-ansi

could this please be removed?

cheers 🙂

@danielcavanagh danielcavanagh added the bug Something isn't working label Feb 26, 2025
@AaronFeledy
Copy link
Member

Related to lando/core#345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants