Skip to content
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

Unexpected handling of ascii input text #682

Open
dekimsey opened this issue Oct 2, 2024 · 0 comments
Open

Unexpected handling of ascii input text #682

dekimsey opened this issue Oct 2, 2024 · 0 comments

Comments

@dekimsey
Copy link

dekimsey commented Oct 2, 2024

Describe the bug
Text emitted by curl when printing headers appear to break line processing. Even after stripping, it's not handled well

To Reproduce
This example has embedded terminal handling, and at first I thought this was the problem.

  1. curl -I -i -s http://example.com | gum style --border=normal

However stripping terminal escapes don't appear to help which is confusing:

  1. `curl -I -i -s http://example.com | perl -pe 's/\e[[0-9;]*m(?:\e[K)?//g | gum style --border=normal'

Expected behavior
Text is formatted correctly.

Screenshots
image

Desktop (please complete the following information):

  • OS: OSX
  • Version: 14.5
  • Terminal: Alacritty

Additional context
Terminal escape stripping is sufficiently complicated I kinda would love to see gum style --strip-input as a possible feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant