Dumping a screensaver to a text file

I am only days away from completing a rather large real-life project, and finally getting back some of the free time I have lost over the past few months. July is looking much more promising than June, and I already have a stack of things I need to make notes on, as well as an old-new desktop system that will need a rehaul.

In the mean time, I accidentally found a rather goofy stunt you can pull at the terminal. I was trying to get some information about cacaplas, one of the “screensavers” I mentioned for the terminal that comes with the caca libraries. I fat-fingered this line by mistake.

cacaplas > output.txt

I realized my mistake almost immediately afterward, but then started to wonder what was in the file. Leafpad showed it as a huge mess of escape codes, which makes sense, but the fun part was using cat to display the contents.

And of course, you get a sort of “recording” of what cacaplas spat out, for the few seconds it runs. (By the way, I wouldn’t let that run too long; the file gets very big, very fast. …)

Like I said, it’s just a quirky trick: not exceptionally functional, and not exceptionally interesting. Still, it’s vaguely cool. ;)

2 Responses to “Dumping a screensaver to a text file”


  1. 1 Ali Gunduz 2009/07/03 at 9:33 AM

    yeah, i found that out accidentally too. iirc with cmatrix…

  2. 2 mulenmar 2009/07/03 at 2:38 PM

    Maybe scripts could be used to output the screensaver to the file, and then use lzma to compress the text file. Later, you could call another script to uncompress the file and display, perhaps even in a loop?

    Hmm. I’m going to have to learn some scripting and try that! :D


Leave a Reply




Welcome!

Some recent desktops


Nov. 20, 2009
screen-vs on Crux Linux
550Mhz Celeron 192Mb PC100


Aug. 21, 2009
Crux 2.4 with Xorg 7.3
and Musca 0.9.23
120Mhz Pentium 16Mb PC66 40Gb

Be counted!

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Downloads

Blog Stats

  • 1,432,310 hits

Categories

Archives

Calendar

July 2009
S M T W T F S
« Jun   Aug »
 1234
567891011
12131415161718
19202122232425
262728293031