Created
September 14, 2012 20:20
-
-
Save skaji/3724492 to your computer and use it in GitHub Desktop.
TeraTerm でクリップボードにコピー
This file contains 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/env perl | |
use strict; | |
use warnings; | |
use MIME::Base64; | |
use Encode; | |
binmode STDIN, ':encoding(utf8)'; | |
my $input = do { | |
local $/; | |
<STDIN>; | |
}; | |
$input =~ s/ \n+ \z//xsm; | |
$input = encode_base64( encode('cp932', $input), q{} ); | |
print "\e]52;;$input\e\\"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment