Termistat : a status bar for your terminal

When running background processes that produce detail logging, it’s often difficult to strike the right balance between providing overall status information and details about the current step in the process. It’s helpful to be able to see “tail-like” information at the detail level to monitor and debug your processes; however, it’s also helpful to be able to know summary information, such as the overall progress through the entire task. You can intersperse “record 1 of n” lines in your output, but they are easy to miss in all the noise.

In order to be able to display both types of information concurrently, I built a simple gem called termistat, which allows you to display a status bar for summary information at the top of your terminal in addition to the original detailed output. It was meant to be a whyday contribution, but I didn’t quite finish it in time to be released on whyday…oh well.

Here’s a screenshot of termistat in action:
termistat screenshot

Termistat requires the ffi-ncurses gem (which requires the ncurses library to be on your system), and has a configuration DSL to customize the appearance somewhat. Check it out and let me know if you have any ideas for improvement!

Posted by Solomon White Fri, 26 Aug 2011 17:03:00 GMT


Trackbacks

Use the following link to trackback from your own site:
http://www.onrails.org/trackbacks?article_id=5089

Comments

  1. andy 12 days later:

    It is said to be the largest Orthodox cathedral in the Baltic region. The interior makes quite an impression. There are beautiful icons and murals with various Old Church Slavonic texts. No photography was allowed inside (quite understandable for a church in active use), though printed brochures have some interior photos.

  2. mearcorbbog 3 months later:

    Hi! i’m like you post: to my @niuuaoui twitter