I
Ilya Zakharevich
My current version of Term::ReadLine:erl (should be on CPAN in a
couple of hours) supports native cut&paste only on OS/2. If somebody
can very quickly supply patches (or code snippets) which work on Win*
and Mac, there is a good chance of their inclusion into the module.
Here are two samples:
if ($^O eq 'os2') {
eval {
require OS2:rocess;
$in = OS2:rocess::ClipbrdText();
$in =~ s/\r\n/\n/g; # With old versions, or what?
}
} else {
-------------------
my $in = shift;
if ($^O eq 'os2') {
eval {
require OS2:rocess;
OS2:rocess::ClipbrdText_set($in);
1
} and return;
}
Thanks,
Ilya
couple of hours) supports native cut&paste only on OS/2. If somebody
can very quickly supply patches (or code snippets) which work on Win*
and Mac, there is a good chance of their inclusion into the module.
Here are two samples:
if ($^O eq 'os2') {
eval {
require OS2:rocess;
$in = OS2:rocess::ClipbrdText();
$in =~ s/\r\n/\n/g; # With old versions, or what?
}
} else {
-------------------
my $in = shift;
if ($^O eq 'os2') {
eval {
require OS2:rocess;
OS2:rocess::ClipbrdText_set($in);
1
} and return;
}
Thanks,
Ilya