Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

BlinkenANSI

by Mr. Muskrat (Canon)
on Aug 16, 2002 at 16:44 UTC ( [id://190700]=note: print w/replies, xml ) Need Help??


in reply to blinkenlights

The code looks nice but I couldn't get curses to install so... I wrote an ANSI version!
#!/usr/bin/perl use strict; use warnings; use Term::ANSIScreen qw/:color :cursor :screen/; use Term::ReadKey; setmode 3; cls; my @colors = ('black on green', 'black on red', 'black on blue', 'black on yellow', 'black on cyan', 'black on magenta', 'black on white'); # Loop to continuously blink the lights but terminate when a key is pr +essed while (not defined (my $key = ReadKey(-1))) { locate int(rand(23)), int(rand(79)); print colored (" ", "reverse " . $colors[int(rand(7))]); }
update: Uh, the reverse is not really necessary. I should try doing random foreground and background colors, display options and characters (you remember the high ascii block characters?).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://190700]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-25 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found