Script waits for the plot window to close before exiting

Instead of sleeping forever. This is really nice! I no longer need to quit the
plot window AND then C-c. Quitting the plot window is now sufficient
This commit is contained in:
Dima Kogan 2018-08-23 22:31:14 -07:00
parent 69285d7df1
commit 9237811ed0

View File

@ -990,7 +990,10 @@ sub mainThread
# we persist gnuplot, so we shouldn't need this sleep. However, once # we persist gnuplot, so we shouldn't need this sleep. However, once
# gnuplot exits, but the persistent window sticks around, you can no # gnuplot exits, but the persistent window sticks around, you can no
# longer interactively zoom the plot. So we still sleep # longer interactively zoom the plot. So we still sleep
sleep(100000000) unless $options{dump} || $options{exit}; unless($options{dump} || $options{exit})
{
print PIPE "pause mouse close\n";
}
} }
sub pruneOldData sub pruneOldData