i've just now gotten around to playing with curses, so here's a peak at what i'm going to be wasting my time with for the next few weeks. (:
#!/usr/bin/perl
use Curses;$l.=<DATA>;$i=pack("h*","$l");initscr;refresh;
qwer("$i");$_=$i;$_=~y.[a-z].0.d;s.\s+?..g;chomp;
addstr 1,49,"$_ me!";refresh;endwin;exit(0);nodelay 1;
sub qwer{$_=shift;$c=0;while($c!=length){map{addstr$c,$c,$_;
move$c,$c;select undef,undef,undef,0.050;refresh;$c++;}split//;}};;;
__DATA__
a45737470214e6f64786562702055627c602841636b65627
Update: according to
marcus, this obfu doesn't like mac 's and/or macperl. if anyone can figure a way to fix it, be my guest ): (i don't have a mac on which to try it, myself)
Update(2): i forgot to mention it earlier (sorry) but this code is largely inspired by both of these cool(!!) nodes:
Foochre's
Use the arrow keys (brilliant!) and
jaldhar's
Running with Scissors - a good, simple working model of how perl handles curses. (i was never very keen on them with C, but this cleared up some things with both languages)
--
strfry()