in reply to Text Animation in Perl
#!perl -l use strict; use warnings; use Curses; use Time::HiRes qw(usleep); initscr(); my ($winh, $winw, $winx, $winy, $line) = qw(10 80 0 0); my $win = newwin($winh, $winw, $winx, $winy) or die $!; $win->scrollok(1); for my $n (0 .. 100) { $line = $n > $winh ? $winh : $n; $win->move($line, 0); $win->addstr("line#$n\n"); $win->refresh(); usleep 10_000; } endwin();
perl -e"\$_=qq/nwdd\x7F^n\x7Flm{{llql0}qs\x14/;s/./chr(ord$&^30)/ge;print"
|
|---|