atotto / clipboard

clipboard for golang
BSD 3-Clause "New" or "Revised" License
1.24k stars 143 forks source link

Add Termux support #33

Closed aral closed 6 years ago

aral commented 6 years ago

This patch adds Termux (Android terminal emulator/Linux environment app) support to Clipboard for Go.

Termux doesn’t support xsel or xclip but it does have its own command-line utilities for getting and setting the system clipboard in the Termux:API add-on.

This patch makes Clipboard for Go use the _termux_clipboardget command for paste and _termux_clipboardset command for copy if those commands exist in an executable state on the system.

atotto commented 6 years ago

Thank you for your PR.

Please remove the cmd/gocopy/gocopy binary file, then force push it.

aral commented 6 years ago

Messed this pull request up while removing the accidentally-committed file. Will open another. Closing.