(n)Curses magic part 2: magic!
by BenV on Aug.08, 2009, under Boring, Fun, Software
So while messing around with some perl/curses stuff I got fancy with colors and soon found out about the limited support of colors in terminals and therefore also Curses.
Anyway, I made this little “fractal plasma” thingy with it, see if you can get it running 😉
It’s not really a fractal plasma, so don’t get technical on that, but it describes it best I think.
To get it running, open up your favorite terminal that supports 256 colors and allows palette changing – I found both xterm and urxvt to work.
Make sure your TERM variable is set to something that allows this, for instance in urxvt:
$ export TERM=rxvt-256color
$ ./fractplasm.pl
or this worked for me with xterm:
$ export TERM=xterm-256color
$ ./fractplasm.pl
Something like this is the result:
Enjoy!
1 Trackback or Pingback for this entry
August 18th, 2009 on 17:56
[…] here:ncurses magic part 2*** :curses, ncurses, perl, […]