On 03/30/2011 09:57 PM, Ben Abbott wrote:

>> Should I propose a new feature for gnuplot that will cause an exit if an 
>> interactive window is closed?
>
> I don't think that is a good idea.
>
> (1) There is no synchronous communication between gnuplot and octave, and(2) 
> Gnuplot can't tell us when its windows are closed.
>
> It may be possible to request the x11 window id from gnuplot, but that will 
> not help with other terminal types (aqua, windows ,etc). Nor does it resolve 
> the problem with missing synchronous communication.

Well, what I was thinking is that whenever one of the interactive 
windows is closed, it would trigger gnuplot to exit and gnuplot's 
process would no longer be in the operating system.

Octave would just need to check if its registered process ID still 
exists.  If not, create a new gnuplot process.  It's still a bit dodgy 
though because someone could close the window while Octave is sending 
data through the pipe.  So, there would need to be some way of toggling 
said feature on and off.  I.e., turn the feature off until Octave is 
done sending data, then enable the feature.

Dan

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to