Guidance on writing a top-like console

N

ntwrkd

I am interested in writing an application that functions like a Unix
or Linux top in the way it displays data.
It should be command-line based but dynamically refreshing.

I'm not sure what I should take into account or how I might go about
implementing this?
Any suggestions are appreciated.
 
M

Mike Driscoll

I am interested in writing an application that functions like a Unix
or Linux top in the way it displays data.
It should be command-line based but dynamically refreshing.

I'm not sure what I should take into account or how I might go about
implementing this?
Any suggestions are appreciated.

Perhaps you're looking for the curses module?

http://www.amk.ca/python/howto/curses/

Mike
 
A

alex23

I am interested in writing an application that functions like a Unix
or Linux top in the way it displays data.
It should be command-line based but dynamically refreshing.

I'm not sure what I should take into account or how I might go about
implementing this?
Any suggestions are appreciated.

Urwid is a Python console UI lib and is definitely what I'd turn to
for something like this:

http://excess.org/urwid/
 
H

Hyuga

I am interested in writing an application that functions like a Unix
or Linux top in the way it displays data.
It should be command-line based but dynamically refreshing.

I'm not sure what I should take into account or how I might go about
implementing this?
Any suggestions are appreciated.

<OT>
Do by any chance play TF2? I've seen someone with the username
'ntwrkd' before. Not that it's necessarily an uncommon username, but
it was the first thing I thought of when I saw this post.
</OT>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,294
Messages
2,571,511
Members
48,206
Latest member
EpifaniaMc

Latest Threads

Top