Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52490 > unrolled thread
| Started by | Veritatem Ignotam <veritatem.ignotam@gmail.com> |
|---|---|
| First post | 2013-08-13 20:38 -0400 |
| Last post | 2013-08-13 20:38 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Subprocess embedded in curses window Veritatem Ignotam <veritatem.ignotam@gmail.com> - 2013-08-13 20:38 -0400
| From | Veritatem Ignotam <veritatem.ignotam@gmail.com> |
|---|---|
| Date | 2013-08-13 20:38 -0400 |
| Subject | Subprocess embedded in curses window |
| Message-ID | <mailman.559.1376446125.1251.python-list@python.org> |
Hey All,
I'm fairly new to python and even newer to curses. Does any one have a
good solution for how to embed the output of a subprocess (ex.
subprocess.Popen("htop", stdout=subprocess.PIPE)) into an ncurses
window? So for example, the terminal window is broken up into quadrants
and the top right has htop running inside. I'd imagine this would
involve some kind of terminal emulation as the dimensions of the window
would need to be queried by htop.
If anyone could please point me in the right direction, I'd be very grateful
Thanks,
Ignotus
Back to top | Article view | comp.lang.python
csiph-web