GTM
view release on metacpan or search on metacpan
gtm_run (
[ "lke", "clear", "-pid=$pid", "-lock=$ref", "-nointeractive" ],
">" => sub { output (@_) },
"2>" => sub { output (@_) },
$cb ? (cb => $cb) : (),
);
}
my @buttons;
sub update_locks ($) {
my $box = shift;
my $lines;
my $cv = gtm_run (
[qw/lke show -all/],
">" => \$lines,
"2>" => \$lines,
cb => sub {
output ("$lines\n");
$box->remove ($_) for (@buttons);
@buttons = ();
( run in 0.480 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )