Skip to content

shell control characters printed to all output #345

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 25, 2025 · 0 comments
Open

shell control characters printed to all output #345

danielcavanagh opened this issue Feb 25, 2025 · 0 comments

Comments

@danielcavanagh
Copy link

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 🙂

@rtfm-47 rtfm-47 transferred this issue from lando/lando Mar 3, 2025
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

2 participants