I am developing an application in PyGtk, and would like to launch a gnome-terminal and output commands to it.
My user should then be able to modify the command, or maybe ignore using the up arrow ... etc.
I have been able to launch a terminal, but can't work out how to send commands.
This is how my application starts:
class App(Gtk.Window): def __init__(self): Gtk.Window.__init__(self) process=subprocess.Popen(["gnome-terminal", "--class=App", "--name=app"], shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE) response,error=process.communicate()