From 9237811ed026e1925ced3384f08323f9bc7ea5e4 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Thu, 23 Aug 2018 22:31:14 -0700 Subject: [PATCH] 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 --- bin/feedgnuplot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/feedgnuplot b/bin/feedgnuplot index a986e88..47eaf23 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -990,7 +990,10 @@ sub mainThread # we persist gnuplot, so we shouldn't need this sleep. However, once # gnuplot exits, but the persistent window sticks around, you can no # 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