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 taking stdin or using termshot as a pipe #176

Open
5HT2 opened this issue Nov 21, 2023 · 2 comments
Open

Support for taking stdin or using termshot as a pipe #176

5HT2 opened this issue Nov 21, 2023 · 2 comments

Comments

@5HT2
Copy link

5HT2 commented Nov 21, 2023

I'm not too sure if this is possible, though given the following sequence of commands, I think it should be possible code-wise?

Screenshot 2023-11-21 at 02 44 56

Naturally, if I attempt to use - as the command or simply nothing, it just errors, though, given the fact it's still able to take stdin as a command, and correctly produce a screenshot, when provided with any valid executable, seems to point to it just being an error handling thing.

If you can point me to where in the code this kind of thing is handled, I'm more than happy to impl it myself and open a pull request :)

@5HT2
Copy link
Author

5HT2 commented Oct 5, 2024

Hi! Has there been any news on this?

@HeavyWombat
Copy link
Member

Hi! Has there been any news on this?

Hey! I somehow missed this (and many others) issue. In general, termshot can be used in a pipe, for example: echo hello | termshot cat. This will create just a "hello" screenshot. What I am not sure about is your exact use case? What do you have in mind in terms of what would be the final screenshot be looking like with what you have in mind?

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

2 participants