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

termux-clipboard-set doesn't work #8

Closed
Neo-Oli opened this issue Dec 29, 2015 · 4 comments
Closed

termux-clipboard-set doesn't work #8

Neo-Oli opened this issue Dec 29, 2015 · 4 comments

Comments

@Neo-Oli
Copy link
Member

Neo-Oli commented Dec 29, 2015

Hi,
"termux-clipboard-set" doesn't exit on my device. It seems to be stuck in a loop. It used to work before.
I've recorded it here: https://asciinema.org/a/esqy5c1yyxk6vv2nf7xl48ugk

@fornwall
Copy link
Member

The termux-clipboard-set script currently does not use any arguments, it only accepts input on stdin. So for now either pipe something to it:

myprogram | termux-clipboard-set

or write it manually, then end input with Ctrl+D (end of file):

$ termux-clipboard-set
Text to put in clipboard
<Ctrl+D>

It'll probably be a good idea to change termux-clipboard-set to optionally accept input as arguments instead of reading stdin!

@Neo-Oli
Copy link
Member Author

Neo-Oli commented Dec 29, 2015 via email

@fornwall
Copy link
Member

The termux-clipboard-set script has been updated to:

  1. If arguments are given, as in termux-clipboard-set text-to-set, then this is put into the clipboard.
  2. If no arguments are given, as in env | termux-clipboard-set, then the text on stdin is put into the clipboard (as previously).

@brainstorm
Copy link

This doesn't seem to hold anymore, it hangs for me as well :/

@ghost ghost deleted a comment from fosslinux Mar 3, 2019
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

3 participants