|
From: Dima K. <gn...@di...> - 2018-08-19 03:02:42
|
Ethan A Merritt <sf...@us...> writes:
> On Friday, August 17, 2018 1:15:24 PM PDT Dima Kogan wrote:
>>
>> I'm looking for a feature that (I think) doesn't exist currently. Want
>> to ask first, in case something DOES exist that I'm not seeing.
>
> The command you are looking for is
> pause mouse close
>
> Recent discussion has indicated that on some systems in may also be
> necessary add a bind command
> bind "Close" "exit gnuplot"
> pause mouse close
>
> gnuplot will exit when the user closes the plot window.
>
> If you want gnuplot to signal the parent application via some side channel
> rather rather than exiting , that's a bit trickier.
> There are several options but the details are OS dependent.
> For example (not necessary the best option)
>
> bind "Close" "system('kill -SIGCONT $PARENTID')"
Ooh, that looks like what I want. Thanks! Will try it out at some point.
Daniel: --persist isn't quite what I want. I'd like gnuplot to stay
alive, and to tell me when the client window has gone away.
For the record, it's for this: https://github.com/dkogan/gnuplotlib
|