Re: LINUX EUPHORIA QUESTION ?
- Posted by Bernie Ryan <xotron at bluefrog.com> Nov 25, 2005
- 535 views
ChrisBurch2 wrote: > Hi > > Whenever you start a linux program, it always runs with a console, you just > cannot see it. > > The program is linked to that console that you run it from, unless you > specifically > separate it (with the &) - ie the program forms a child process. > > You can see this in effect by starting an xterm, and looking for its PID, > then starting a euphoria program, without the &, and then either killing the > xterm with kill, xkill or jut clicking the x, the program started from that > terminal will also die. > > If you run the eu program from a terminal, it will puts to that terminal > as its standard out. > > What I suspect you are doing is starting a program from the file manager, > or from a created program icon. In actual fact a console is started, its > just that you haven't set the manager or the icon parameters to show the > console when the program starts. All puts' will go to the console, just > won't be seen. > > For instance, on my SuSE KDE, I right click on the icon to get the > properties, and on one of the tabs is a check box that says 'Run in terminal' > or similar. > > There will be similar properties when you set up the file manager to run > exu programs. > > Any help? > Chris: I have developed code that allows a Euphoria user to write and use X-Windows, XT (Intrinsic Toolkit, Xaw & Xaw-3d Athena Widgets, and Motif Widgets. I am writing a pure X-Window demo that has some buttons to execute system calls like system("date",2) which send date text to the console. The text appears when I run in terminal mode because of course the the terminal is already open. If the demo is started from the run command the text goes to the hidden console like you say. What concerns me is a less knowledgable user will think the demo doesn't work. So I was trying to find a way to make the console visible when the program is run without depending on the users knowledge. I can open a xterm terminal but I don't know how to change it be used as standard out. Bernie My files in archive: w32engin.ew mixedlib.e eu_engin.e win32eru.exw Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan