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

Support for piping into scripts that use escape codes #174

Open
katmfoo opened this issue Oct 3, 2020 · 0 comments
Open

Support for piping into scripts that use escape codes #174

katmfoo opened this issue Oct 3, 2020 · 0 comments

Comments

@katmfoo
Copy link

katmfoo commented Oct 3, 2020

I have a shell script called yank (source) that you can pipe data into and it will copy it to the system clipboard using escape code osc 52. I would love to use this with http-prompt, so that I could do the following:

get | yank

and have the output of the request copied to my clipboard. Normally (when the yank script is ran in just a normal shell) there is no output of any text, as the shell recognizes the escape codes and simply does the action (copying to clipboard in this case) instead of outputting the text. http-prompt seems to just dump out the text though, and the resulting action does not happen. Here is an image of what happens:

image

Ideally, http-prompt should not output any of the text and allow the escape codes to be read by the shell to perform the action.

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