App-optex-scroll
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/App/optex/scroll.pm view on Meta::CPAN
}
sub finalize {
our($mod, $argv) = @_;
#
# private option handling
#
if (@$argv and $argv->[0] !~ /^-M/ and
defined(my $i = first { $argv->[$_] eq '--' } keys @$argv)) {
splice @$argv, $i, 1; # remove '--'
if (local @ARGV = splice @$argv, 0, $i) {
use Getopt::Long qw(GetOptionsFromArray);
Getopt::Long::Configure qw(bundling);
GetOptions \%opt, hash_to_spec \%opt or die "Option parse error.\n";
}
}
my $i = first { $argv->[$_] eq '--' } keys @$argv;
if (defined $i and $argv->[0] !~ /^-M/) {
splice @$argv, $i, 1; # remove '--'
if (local @ARGV = splice @$argv, 0, $i) {
use Getopt::Long qw(GetOptionsFromArray);
Getopt::Long::Configure qw(bundling);
GetOptions \%opt, hash_to_spec \%opt or die "Option parse error.\n";
}
}
my $region = $opt{line};
flush "\n" x $region;
flush csi_code(CPL => $region); # CPL: Cursor Previous Line
my($l, $c) = cursor_position() or return;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.423 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )