Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53647 > unrolled thread
| Started by | Antoon Pardon <antoon.pardon@rece.vub.ac.be> |
|---|---|
| First post | 2013-09-04 21:57 +0200 |
| Last post | 2013-09-04 21:57 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Reading from stdin first, then use curses Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-04 21:57 +0200
| From | Antoon Pardon <antoon.pardon@rece.vub.ac.be> |
|---|---|
| Date | 2013-09-04 21:57 +0200 |
| Subject | Re: Reading from stdin first, then use curses |
| Message-ID | <mailman.57.1378324701.5461.python-list@python.org> |
Op 04-09-13 20:45, Veritatem Ignotam schreef:
> I'd like to bump this. I asked a similar question a few weeks ago and
> had no reply. Here's my question:
>
> 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
Search for pty in the python documentation.
--
Antoon Pardon.
Back to top | Article view | comp.lang.python
csiph-web