I am looking for some Linux packages / APIs that can display output in columns similar to top
.
For example, continue to clear and rewrite the output in full screen at a given interval (I think watch probably does it quite well, but I hope some APIs wrap it on top).
Easy to sort by columns. In particular, if I sort by column A, then the next time I re-type everything, it remembers sorting by column A every time the output is updated.
And of course, ideally, it can handle keyboard input for me.
In general, I am looking for packages or APIs that can help me organize my output in such a way that " top
" organizes it.
Just for clarity: what I'm showing may not be completely related to system statistics. I just love how top organizes content. For example, My content may be output (and it is constantly changing, so it needs to be cleaned and rewritten):
Col1 Col2 Time
12 4 13
13 5 19
14 5 15
I can press the "A" key and then sort by time. If I press key B, it is sorted on Col1. If I press the key, say C, it is sorted by Col2, etc. Etc.
And, of course, this output content can be completely in memory, organized in any data structures.
source share