mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-05 22:11:12 +08:00
added --exit option allowing feedgnuplot to return
This commit is contained in:
parent
ef2bff2af6
commit
08d2f79fba
@ -118,7 +118,7 @@ sub interpretCommandline
|
|||||||
'square!', 'square_xy!', 'hardcopy=s', 'maxcurves=i', 'monotonic!',
|
'square!', 'square_xy!', 'hardcopy=s', 'maxcurves=i', 'monotonic!',
|
||||||
'histogram=s@', 'binwidth=f', 'histstyle=s',
|
'histogram=s@', 'binwidth=f', 'histstyle=s',
|
||||||
'terminal=s',
|
'terminal=s',
|
||||||
'extraValuesPerPoint=i', 'help', 'dump', 'version',
|
'extraValuesPerPoint=i', 'help', 'dump', 'exit', 'version',
|
||||||
'geometry=s') or pod2usage( -exitval => 1,
|
'geometry=s') or pod2usage( -exitval => 1,
|
||||||
-verbose => 1, # synopsis and args
|
-verbose => 1, # synopsis and args
|
||||||
-output => \*STDERR );
|
-output => \*STDERR );
|
||||||
@ -578,7 +578,7 @@ 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(100000) unless $options{dump};
|
sleep(100000) unless $options{dump} || $options{exit};
|
||||||
}
|
}
|
||||||
|
|
||||||
sub pruneOldData
|
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
|
debugging. It is possible to send the output produced this way to
|
||||||
gnuplot directly.
|
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
|
--geometry If using X11, specifies the size, position of the plot window
|
||||||
|
|
||||||
--version Print the version and exit
|
--version Print the version and exit
|
||||||
|
Loading…
Reference in New Issue
Block a user