Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art.animation, 24 Aug 2000.
Re: Please wait... [was: Perl - Blinking Text]

Re: Please wait... [was: Perl - Blinking Text]

Greg Bacon (gba...@HiWAAY.net) wrote on MMDL September MCMXCIII in
<URL:news:sqa...@corp.supernews.com>:
@@ 
@@ How about this?
@@ 
@@     sub bubbles {
@@         my @bubble = (' ', '.', 'o', 'O');
@@         my $len = 10;
@@         my $tank = join '',
@@                    map $bubble[rand @bubble],
@@                    1 .. $len;
@@ 
@@         my $tmp;
@@         while (1) {
@@             print "\rPlease wait $tank";
@@ 
@@             $tank =~ s/(OO+)/$tmp = ' ' x length $1;
@@                              substr($tmp, rand length $1, 1) = 'O';
@@                              $tmp/eg;
@@ 
@@             $tank =~ s/oo/     rand() < 0.5 ? 'O ' : ' O'/eg;
@@             $tank =~ s/\.\./   rand() < 0.5 ? 'o ' : ' o'/eg;
@@             $tank =~ s/Oo/     rand() < 0.5 ? 'O ' : ' O'/egi;
@@             $tank =~ s/\.o|o\./rand() < 0.5 ? 'o ' : ' o'/eg;
@@             $tank =~ s/\.O|O\./rand() < 0.5 ? 'oO' : 'Oo'/eg;
@@ 
@@             while (rand() < 0.6) {
@@                 substr($tank, rand $len, 1) = $bubble[rand @bubble];
@@             }
@@ 
@@             select undef, undef, undef, 0.2;
@@         }
@@     }


That seems to need a $| = 1.



Abigail
-- 
perl -wleprint -eqq-@{[ -eqw+ -eJust -eanother -ePerl -eHacker -e+]}-

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fa0ae,85d37e30d034d7ec
X-Google-Attributes: gidfa0ae,public
X-Google-Thread: fd588,7ad72948312cb279
X-Google-Attributes: gidfd588,public
From: abi...@foad.org (Abigail)
Subject: Re: Please wait... [was: Perl - Blinking Text]
Date: 2000/08/24
Message-ID: <slr...@alexandra.foad.org>#1/1
X-Deja-AN: 662092324
References: <200...@ng-ch1.aol.com> <spi...@corp.supernews.com> <967...@itz.pp.sci.fi> <sqa...@corp.supernews.com>
X-Date: MMDL September MCMXCIII
X-HTTP: http://purl.oclc.org/NET/Abigail
X-Revision: $Revision: 1.2 $
Organization: Abigail's Kinderboerderijen
User-Agent: slrn/0.9.6.2 (Linux)
Reply-To: abi...@foad.org
Newsgroups: comp.lang.perl.misc,alt.ascii-art.animation
About this message. This message was posted publicly to the newsgroup alt.ascii-art.animation in 2000 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post