Re: Reading from stdin first, then use curses

Discussion in 'Python' started by Antoon Pardon, Sep 4, 2013.

  1. 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.
     
    Antoon Pardon, Sep 4, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stefano Sabatini
    Replies:
    6
    Views:
    311
    Stefano Sabatini
    Jul 29, 2007
  2. Timo Schmiade

    Reading from stdin first, then use curses

    Timo Schmiade, Aug 11, 2013, in forum: Python
    Replies:
    0
    Views:
    109
    Timo Schmiade
    Aug 11, 2013
  3. Timo Schmiade
    Replies:
    0
    Views:
    103
    Timo Schmiade
    Aug 31, 2013
  4. Antoon Pardon
    Replies:
    0
    Views:
    98
    Antoon Pardon
    Sep 1, 2013
  5. Veritatem Ignotam

    Re: Reading from stdin first, then use curses

    Veritatem Ignotam, Sep 4, 2013, in forum: Python
    Replies:
    0
    Views:
    111
    Veritatem Ignotam
    Sep 4, 2013
Loading...

Share This Page