App-optex-scroll
view release on metacpan or search on metacpan
lib/App/optex/scroll.pm view on Meta::CPAN
else {
$opt{$a} = $b;
}
} @_;
}
1;
__END__
=encoding utf-8
=head1 NAME
App::optex::scroll - optex scroll region module
=head1 SYNOPSIS
optex -Mscroll [ options -- ] command
=head1 VERSION
Version 0.9902
=head1 DESCRIPTION
B<optex>'s B<scroll> module prevents a command that produces output
longer than terminal hight from causing the executed command line to
scroll out from the screen.
It sets the scroll region for the output of the command it executes.
The output of the command scrolls by default 10 lines from the cursor
position where it was executed.
=head1 OPTIONS
=over 7
=item B<--line>=I<n>
Set scroll region lines to I<n>.
Default is 10.
=item B<--interval>=I<sec>
Specifies the interval time in seconds between outputting each line.
Default is 0 seconds.
=back
=head1 EXAMPLES
optex -Mscroll ping localhost
optex -Mscroll seq 100000
optex -Mscroll tail -f /var/log/system.log
=begin html
<p><img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/optex-scroll/main/images/ping.png">
=end html
optex -Mpingu -Mscroll --line 20 -- ping --pingu -i0.2 -c75 localhost
=begin html
<p>
<a href="https://www.youtube.com/watch?v=C3LoPAe7YB8">
<img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/optex-scroll/main/images/pingu.png">
</a>
=end html
=head1 INSTALL
Use L<cpanminus(1)> command:
cpanm App::optex::scroll
=head1 SEE ALSO
L<App::optex>,
L<https://github.com/kaz-utashiro/optex/>
L<App::optex::scroll>,
L<https://github.com/kaz-utashiro/optex-scroll/>
L<App::optex::pingu>,
L<https://github.com/kaz-utashiro/optex-pingu/>
L<https://vt100.net/docs/vt100-ug/>
=head1 LICENSE
Copyright Â©ï¸ 2024 Kazumasa Utashiro.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=head1 AUTHOR
Kazumasa Utashiro
=cut
( run in 2.710 seconds using v1.01-cache-2.11-cpan-788537b7465 )