Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

curses japh

by strfry() (Monk)
on Oct 25, 2001 at 01:14 UTC ( [id://121273]=obfuscated: print w/replies, xml ) Need Help??

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()

Replies are listed 'Best First'.
Re: curses japh
by marcus (Scribe) on Oct 25, 2001 at 14:48 UTC
    bash-2.04$ perl curses Bus error
    I guess my mac doesn' t like your obfu ;(
    qw[marcus]
      does it handle curses based applications very well? i've never played with perl on a mac before, so i'm not really certain how to fix that. ):
      strfry()
        I have no idea ;) it's running macosx so it should be fairly standard. I just installed Curses to test your thingie

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-19 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found