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


Groups > comp.lang.python > #53647

Re: Reading from stdin first, then use curses

Date 2013-09-04 21:57 +0200
From Antoon Pardon <antoon.pardon@rece.vub.ac.be>
Subject Re: Reading from stdin first, then use curses
References <20130811120511.GA8223@Discworld.fritz.box> <20130831083103.GA570@Discworld.fritz.box> <52277FDF.9050209@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.57.1378324701.5461.python-list@python.org> (permalink)

Show all headers | View raw


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 comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Reading from stdin first, then use curses Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-04 21:57 +0200

csiph-web