Skip to content

Instantly share code, notes, and snippets.

@zmughal
Created October 14, 2011 09:57
Show Gist options
  • Save zmughal/1286719 to your computer and use it in GitHub Desktop.
Save zmughal/1286719 to your computer and use it in GitHub Desktop.
Rapid Serial Visual Presentation in the terminal
#!/usr/bin/perl
# Requires: figlet
use Time::HiRes qw/sleep/;
while(<>) {
@F = split;
for my $word (@F) {
print "\n" x 5;
system "figlet", "-tcWf", "big", "$word";
sleep(0.1 + 0.2*(length $word)/3);
system "clear";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment