Acme-Curses-Marquee-Extensions
    
    
  
  
  
view release on metacpan or search on metacpan
# http://module-build.sourceforge.net/META-spec.html
#XXXXXXX This is a prototype!!!  It will change in the future!!! XXXXX#
name:         Acme-Curses-Marquee-Extensions
version:      0.04
version_from: lib/Acme/Curses/Marquee/Extensions.pm
installdirs:  site
requires:
    Acme::Curses::Marquee:         
    Curses:                        
    Every:                         
    Term::ANSIColor:               
    Text::FIGlet:                  2
lib/Acme/Curses/Marquee/Extensions.pm view on Meta::CPAN
The text to render.
=back
=head2 colors(delay=>I<seconds>, colors=>I<[colors]>)
=over
=item delay
The number of seconds between color changes. Defaults to 5.
=item colors
An arrayref of colors to cycle through. Defaults to a rainbow i.e;
'red', 'yellow', 'bold yellow', 'green', 'cyan', 'blue', 'magenta'
See L<Term::ANSIColor> for legal values.
=back
=head2 sweep( I<toggle> )
True values enable a left-to-right sweep-in of the message before scrolling.
Set once, and left enabled, sweeping will result in a sort of "Knight Rider"
effect. A toggle of I<-1> will use this effect only once, as a fade-in.
Note that you can change your sweep state at any time, though the interval
should exceed the time it takes for the message to scroll e.g;
  use Every;
  ...
  $m->sweep(1);
  while( 1 ){
    do{exists$m->{_sweep}?$m->sweep(0):$m->sweep(1)} if every seconds=>60;
    ...
  }
t/Acme-Curses-Marquee-Extensions.t view on Meta::CPAN
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl Acme-Curses-Marquee-Extensions.t'
#########################
# change 'tests => 1' to 'tests => last_test_to_print';
use Test::More tests => 1;
BEGIN { use_ok('Acme::Curses::Marquee::Extensions') };
#########################
# Insert your test code below, the Test::More module is use()ed here so read
# its man page ( perldoc Test::More ) for help writing this test script.
( run in 0.918 second using v1.01-cache-2.11-cpan-5dc5da66d9d )