Created
January 13, 2015 15:10
-
-
Save cybic/751eb664fe82b0f8990d to your computer and use it in GitHub Desktop.
Pipe text to this to copy to OS X pasteboard/clipboard using iTerm2 escape sequences
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# Copy to OS X Clipboard using iterm2 escape chars | |
print "\e]50;CopyToClipboard\a"; | |
while (<>) { | |
print; | |
} | |
print "\e]50;EndCopy\a"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice 😄