mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-05 22:11:12 +08:00
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:
parent
69285d7df1
commit
9237811ed0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user