Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53647
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <antoon.pardon@rece.vub.ac.be> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.068 |
| X-Spam-Evidence | '*H*': 0.86; '*S*': 0.00; 'broken': 0.04; 'output': 0.05; 'window?': 0.09; 'python': 0.11; 'bump': 0.16; 'emulation': 0.16; 'pty': 0.16; 'subject:Reading': 0.16; 'header:User-Agent:1': 0.23; 'fairly': 0.24; 'question': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'newer': 0.30; "i'm": 0.30; 'asked': 0.31; 'reply.': 0.31; 'dimensions': 0.31; 'embed': 0.31; 'question:': 0.31; 'anyone': 0.31; 'this.': 0.32; 'weeks': 0.32; 'running': 0.33; 'ago': 0.33; "i'd": 0.34; 'subject:from': 0.34; 'could': 0.34; 'grateful': 0.36; 'similar': 0.36; 'example,': 0.37; 'window': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; 'new': 0.61; 'kind': 0.63; 'received:192.168.1.7': 0.84; 'received:195.238': 0.84; 'received:195.238.6': 0.84; 'received:belgacom.be': 0.84; 'received:isp.belgacom.be': 0.84; 'imagine': 0.93 |
| X-Belgacom-Dynamic | yes |
| X-IronPort-Anti-Spam-Filtered | true |
| X-IronPort-Anti-Spam-Result | ApMBACKQJ1Jbs8a1/2dsb2JhbAANTcJZgniBPoMZAQEEOEARCyEWDwkDAgECAUUTCAIXryqKMYhOj2cWhAcDl3WVCA |
| Date | Wed, 04 Sep 2013 21:57:12 +0200 |
| From | Antoon Pardon <antoon.pardon@rece.vub.ac.be> |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130704 Icedove/17.0.7 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Reading from stdin first, then use curses |
| References | <20130811120511.GA8223@Discworld.fritz.box> <20130831083103.GA570@Discworld.fritz.box> <52277FDF.9050209@gmail.com> |
| In-Reply-To | <52277FDF.9050209@gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.57.1378324701.5461.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1378324701 news.xs4all.nl 15952 [2001:888:2000:d::a6]:48992 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:53647 |
Show key headers only | 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
Re: Reading from stdin first, then use curses Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-04 21:57 +0200
csiph-web