Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52490 > unrolled thread

Subprocess embedded in curses window

Started byVeritatem Ignotam <veritatem.ignotam@gmail.com>
First post2013-08-13 20:38 -0400
Last post2013-08-13 20:38 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Subprocess embedded in curses window Veritatem Ignotam <veritatem.ignotam@gmail.com> - 2013-08-13 20:38 -0400

#52490 — Subprocess embedded in curses window

FromVeritatem Ignotam <veritatem.ignotam@gmail.com>
Date2013-08-13 20:38 -0400
SubjectSubprocess 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web