Skip to content

shell control characters printed to all output #345

@danielcavanagh

Description

@danielcavanagh

hi

the cli seems to print shell control characters to all output, including during command substitution and file redirection, even when there's no colouring involved

`

lando --help 2> out.txt
more out.txt
ESC[32mUsage:ESC[39m
...
`

correct output should be:
`

more out.txt
Usage:
...
`

for uncoloured output from lando composer show:
`

lando composer show > out.txt
more out.txt
ESC]8;;https://github.com/asm89/stack-cors/tree/v2.2.0ESC\asm89/stack-corsESC]8;;ESC\ 2.2.0 Cross-origin reso...
...
`

correct output:
`

more out.txt
asm89/stack-cors 2.2.0 Cross-origin resource sharing library and stack middleware
...
`

cheers 🙂

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions