Re: LINUX EUPHORIA QUESTION ?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Bernie Ryan wrote:
> 
> 
> If I start a exu program running from the command line or clicking on
> it's icon, how do I get a terminal window to open so I can puts() to
> that window.
> 
> 
> Bernie
> 
> My files in archive:
> w32engin.ew mixedlib.e eu_engin.e win32eru.exw
> 
> Can be downloaded here:
> <a
> href="http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan">http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan</a>

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu