December 06

Ted vs Unix

I found this picture of Ted getting pwned floating around the internet, I can sympathize though, I have on a few occasions times gotten angry at my shell and done something similar. Saidar is little program that uses libstatgrab to display a nice overall summary of your computer. I decided it would be nicer if it had some color in its output so I downloaded the source code and started adding a -c option for colors. It turned out to become a little bit harder than I thought as I realized that I could do different things with the colors as the numbers change, for example the CPU will go bold at 60% usage and reverse-video at 90% usage. My patch was accepted by the software's author and as a result, version 0.14 includes color support.

I have returned my focus to my little document reading program and am spending time trying to find ways to handle users resizing the screen in ncurses without having the terminal become unreadable. This involves trapping signals and redrawing boxes and sub-windows. Fun stuff that makes me feel like Ted.

Posted by æc♥ | Permanent Link