Re: [Hampshire] Is my program detached?

Top Page

Reply to this message
Author: James Courtier-Dutton
Date:  
To: Stephen Pelc, Hampshire LUG Discussion List
Subject: Re: [Hampshire] Is my program detached?
2009/9/29 Stephen Pelc <stephen@???>:
>
> Thank you for answering a question I didn't ask! The current
> version of vfxlin has changed! The question is how do I
> determine if a program is running in a terminal session or is
> detached in some way, e.g. by using & at the end of the command
> line? I need need to make this distinction in order to choose
> between I/O to the term/xterm device or launch a GUI console.
>


Why not just try to open a GUI console, and if that fails, use stdio.
Or, better, add a extra command line option to vfxlin so the person
running it can decide on gui or text