Re: Inquiry about portable GUI and scripting

From: Tom Roberts <tjrob_at_fnal.gov>
Date: Sun, 21 Jan 2007 17:15:52 -0600


I have spent an hour or two playing with this, and have a reasonable first attempt. It has a TGTextEntry to enter a command, a Run button, and uses a TThread to copy stdout of the command to a TGTextView -- that is most of what I need. Eventually I'll make it find my executable and setup its environment (what I need the portable scripting to do).

Two limitations:

  1. I would like to have a pipe both to stdin and from stdout of the command. TSystem::OpenPipe() cannot do that (indeed, the usual popen(3) cannot do it). I can work around this.
  2. How do I kill the command (running from OpenPipe() or Exec())? This I absolutely need. On Linux and MacOS I know what to do; what do I do on Windows? My program must be compiled (ACLiC), and I am willing to use #ifdef WIN32, but don't know what to put there....

And a question: Is there a way to suppress or hide the stdin/stdout/terminalWindow of Root? It is likely to confuse some users....

Tom Roberts Received on Mon Jan 22 2007 - 00:16:03 CET

This archive was generated by hypermail 2.2.0 : Mon Jan 22 2007 - 11:50:01 CET