jsbowden: (Default)
jsbowden ([personal profile] jsbowden) wrote2008-07-24 09:57 am

People with WAY too much freetime...

Do things like code up Tetris as a sed script.

My Irix (SGI) xterm doesn't display it correctly, but I suspect that an Xorg based xterm on FreeBSD or Linux would work just fine.

[identity profile] silmaril.livejournal.com 2008-07-24 02:39 pm (UTC)(link)
So how do I run that?

(Never used sed before.)

[identity profile] scifantasy.livejournal.com 2008-07-24 02:46 pm (UTC)(link)
Download it, chmod it executable, and run it, I imagine.

[identity profile] jsbowden.livejournal.com 2008-07-24 04:02 pm (UTC)(link)
It's a shell script. Copy the text into a file, chmod it executable, and run it. Make sure the path to sed in line 0 actually points to sed.

[identity profile] silmaril.livejournal.com 2008-07-24 04:15 pm (UTC)(link)
Couldn't get it to work right in my xterms. I probably could after tweaking character sets etc a little, but don't have time.

Impressive, nonetheless.

[identity profile] jsbowden.livejournal.com 2008-07-24 04:21 pm (UTC)(link)
I just had to comment out the color code lines (it even tells you where if you read the whole thing) to get it to work on an SGI. It's pretty simple. Just hit enter a few times and enter a single keystroke between each to enter commands. It's pretty damn nifty.