[feedgnuplot] 05/42: added --exit option allowing feedgnuplot to return

Dima Kogan dkogan-guest at alioth.debian.org
Sun Oct 20 08:04:02 UTC 2013


This is an automated email from the git hooks/post-receive script.

dkogan-guest pushed a commit to tag v1.25
in repository feedgnuplot.

commit 08d2f79fba1ecc2d33beb2d39e391563db13d06e
Author: Eric Schulte <schulte.eric at gmail.com>
Date:   Mon Aug 12 16:33:47 2013 -0600

    added --exit option allowing feedgnuplot to return
---
 bin/feedgnuplot |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/bin/feedgnuplot b/bin/feedgnuplot
index cce151b..f380bab 100755
--- a/bin/feedgnuplot
+++ b/bin/feedgnuplot
@@ -118,7 +118,7 @@ sub interpretCommandline
              'square!', 'square_xy!', 'hardcopy=s', 'maxcurves=i', 'monotonic!',
              'histogram=s@', 'binwidth=f', 'histstyle=s',
              'terminal=s',
-             'extraValuesPerPoint=i', 'help', 'dump', 'version',
+             'extraValuesPerPoint=i', 'help', 'dump', 'exit', 'version',
              'geometry=s') or pod2usage( -exitval => 1,
                                          -verbose => 1, # synopsis and args
                                          -output  => \*STDERR );
@@ -578,7 +578,7 @@ 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(100000) unless $options{dump};
+    sleep(100000) unless $options{dump} || $options{exit};
 }
 
 sub pruneOldData
@@ -1143,6 +1143,10 @@ As an example, if line 3 of the input is "0 9 1 20"
                        debugging. It is possible to send the output produced this way to
                        gnuplot directly.
 
+  --exit               Exit the feedgnuplot process after passing data to gnuplot. With
+                       gnuplot versions >= 4.3 the window will persist but will not be
+                       interactive.
+
   --geometry           If using X11, specifies the size, position of the plot window
 
   --version            Print the version and exit

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/feedgnuplot.git



More information about the debian-science-commits mailing list