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


Groups > comp.lang.python > #52490

Subprocess embedded in curses window

Date 2013-08-13 20:38 -0400
From Veritatem Ignotam <veritatem.ignotam@gmail.com>
Subject Subprocess embedded in curses window
Newsgroups comp.lang.python
Message-ID <mailman.559.1376446125.1251.python-list@python.org> (permalink)

Show all headers | View raw


Hey All,

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

Thanks,

Ignotus

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Subprocess embedded in curses window Veritatem Ignotam <veritatem.ignotam@gmail.com> - 2013-08-13 20:38 -0400

csiph-web