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

Various edits to fine-tune behaviour on Linux #4

Closed
wants to merge 8 commits into from

Conversation

lmmx
Copy link
Contributor

@lmmx lmmx commented Aug 28, 2015

  • Add a check for xsel (an xclip alternative, but doesn't have xclip's -f filter flag, so can only write to one clipboard easily.
  • Used this xclip -f flag to write to both primary and "clipboard" clipboards (Linux has 3).
  • Read with scan() and write with writeChar(), because of trailing-newlines / multiple lines being mishandled.
  • Move the stop() call advising to install "xclip (recommended) or xsel" into its own function, to avoid repetition.
  • install -> install_github in README, and loading the library in the example

@lmmx lmmx closed this Aug 31, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants