Skip to content

composer always prints escape codes #157

@danielcavanagh

Description

@danielcavanagh

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 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions