greenarrow / magnetism

Magnetism is an easy to use environment for writing and running simple useful scripts to do useful things on your desktop.
http://greenarrow.github.com/magnetism
1 stars 0 forks source link

There is no way to view terminal output from called binaries #1

Open greenarrow opened 14 years ago

greenarrow commented 14 years ago

When for example a script does something like os.system("adb forward tcp:8080 tcp:8080") there is no way of viewing the terminal output to know if it worked or not.

Ideally we should be verifying the output in the script, but it would also be very handy to see the console output in the gui. If we abstract all system calls to a magnetism function then we a console output section at the bottom of the main frame. This section can be hidden and made visible optionally when a script uses it.

Use the subprocess module for this

greenarrow commented 14 years ago

Also add function to allow user to print to this