PortageXS::UI::Spinner::Rainbow - Console progress spinner bling.
version 0.3.1
use PortageXS::UI::Spinner::Rainbow; my $spinner = PortageXS::UI::Spinner->new(%attributes); for ( 0..1000 ){ sleep 0.1; $spinner->spin; } $spinner->reset;
spin
Emits a backspace and the next spin character to output_handle
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
colorstate
The index of the next color state to dispatch.
colorstates
A list of colors to dispatch.
_last_colorstate
The number of colorstates this ::Spinner::Rainbow object has.
::Spinner::Rainbow
_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
print
Christian Hartmann <ian@gentoo.org>
Torsten Veller <tove@gentoo.org>
Kent Fredric <kentnl@cpan.org>
This software is Copyright (c) 2013 by Christian Hartmann.
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
To install PortageXS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PortageXS
CPAN shell
perl -MCPAN -e shell install PortageXS
For more information on module installation, please visit the detailed CPAN module installation guide.