App-optex-scroll
view release on metacpan or search on metacpan
lib/App/optex/scroll.pm view on Meta::CPAN
515253545556575859606162636465666768697071727374757677787980}
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
) {
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
) {
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
;
( run in 0.522 second using v1.01-cache-2.11-cpan-49f99fa48dc )