Note that there are some explanatory texts on larger screens.

plurals
  1. POLooking for PyQt4 embeddable terminal widget
    primarykey
    data
    text
    <p>I wrote an application that, among other things, launches some "backend" processes to do some stuff. These subprocesses are very likely to fail or have unexpected behavior since they have to operate in quite hard conditions, so I prefer to give full control over them to the operator.</p> <p><strong>NOTE:</strong> I am running these processes using a <code>subprocess</code> module based class instead of <code>QProcess</code> to have some more control functionality over the running process.</p> <p>At the moment, I'm using a <code>QPlainTextEdit</code> widget to which I append standard output/error from the subprocess, plus some buttons to quickly send some common signals (INT, STOP, CONT, KILL, ..), but:</p> <ul> <li>In some cases it would be useful to send some input too. Although it could be done with a text input box, I would prefer using something more "professional"</li> <li>Of course, there is no direct way to interpret special control characters, such as color codes, cursor movement, etc..</li> <li>I had to implement an auto-scroll management of the console, but it is not guaranteed 100% to work nicely (sometimes the scroll locking doesn't work as expected, etc.)</li> </ul> <p>So: does anyone know something I could use to accomplish these needs?</p> <p>I found <a href="http://qtermwidget.sourceforge.net/" rel="nofollow">qtermwidget</a> but it seems more oriented on handling a shell process (and the Python bindings seems to let you run <code>/bin/bash</code> only) by itself than communicating with an already existing process I/O.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload