Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
PortageXS::UI::Spinner::Rainbow - Console progress spinner bling.
VERSION
version 0.3.1
SYNOPSIS
use PortageXS::UI::Spinner::Rainbow;
my $spinner = PortageXS::UI::Spinner->new(%attributes);
for ( 0..1000 ){
sleep 0.1;
$spinner->spin;
}
$spinner->reset;
METHODS
spin
Emits a backspace and the next spin character to output_handle
reset
Emits a spin-character clearing sequence to output_handle
This is just
\b : backspace over last character
\s : print a space to erase past characters
\b : backspace again to prepare for more output
ATTRIBUTES
colorstate
The index of the next color state to dispatch.
colorstates
A list of colors to dispatch.
PRIVATE METHODS
_last_colorstate
The number of colorstates
this ::Spinner::Rainbow
object has.
_increment_colorstate
Increment the position within the colorstates
array by one, updating colorstate
_get_next_colorstate
Returns the next character from the colorstates
array
_print_to_output
Internal wrapper to proxy print
to output_handle
AUTHORS
Christian Hartmann <ian@gentoo.org>
Torsten Veller <tove@gentoo.org>
Kent Fredric <kentnl@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2013 by Christian Hartmann.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991