My original idea was to wrap the "top" program by William LeFebvre. Then, I thought I'd just yank out the bits I needed. The problem is I'm having a hard time deciphering some of his code - it's definitely a bit above my head. I may just start from scratch, using his code to get me started and give me ideas as I go.
One funny thing I saw was this bit of code within the boolean.h file:
#define No 0
#define Yes 1
#define Maybe 2