Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Reading from stdin first, then use curses

Reply
Thread Tools

Re: Reading from stdin first, then use curses

 
 
Antoon Pardon
Guest
Posts: n/a
 
      09-04-2013
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Reading from stdin first, then use curses Veritatem Ignotam Python 0 09-04-2013 06:45 PM
Re: Reading from stdin first, then use curses Antoon Pardon Python 0 09-01-2013 08:36 PM
Re: Reading from stdin first, then use curses Timo Schmiade Python 0 08-31-2013 08:31 AM
Reading from stdin first, then use curses Timo Schmiade Python 0 08-11-2013 12:05 PM
Reading from stdin then launching a program that reads from stdin strange behaviour Stefano Sabatini Perl Misc 6 07-29-2007 10:38 PM



Advertisments