Mercurial > octave-nkf
changeset 9771:4634a0e9ea1b
gnuplot_drawnow.m (gnuplot_default_term): don't set term to x11 unless DISPLAY is set
author | Stefan Hepp <stefan@stefant.org> |
---|---|
date | Mon, 02 Nov 2009 21:34:04 -0500 |
parents | 1a69a9c0ee00 |
children | 3ac8ea48279b |
files | doc/interpreter/contributors.in scripts/ChangeLog scripts/plot/gnuplot_drawnow.m |
diffstat | 3 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/contributors.in Mon Nov 02 15:20:20 2009 +0100 +++ b/doc/interpreter/contributors.in Mon Nov 02 21:34:04 2009 -0500 @@ -74,6 +74,7 @@ Dave Hawthorne Daniel Heiserer Martin Helm +Stefan Hepp Yozo Hida Ryan Hinton Roman Hodek
--- a/scripts/ChangeLog Mon Nov 02 15:20:20 2009 +0100 +++ b/scripts/ChangeLog Mon Nov 02 21:34:04 2009 -0500 @@ -1,3 +1,8 @@ +2009-11-02 Stefan Hepp <stefan@stefant.org> + + * plot/gnuplot_drawnow.m (gnuplot_default_term): Don't set term to + x11 unless DISPLAY is set. + 2009-11-02 Jaroslav Hajek <highegg@gmail.com> * general/interp1.m: Simplify.
--- a/scripts/plot/gnuplot_drawnow.m Mon Nov 02 15:20:20 2009 +0100 +++ b/scripts/plot/gnuplot_drawnow.m Mon Nov 02 21:34:04 2009 -0500 @@ -328,8 +328,10 @@ term = "aqua"; elseif (! isunix ()) term = "windows"; + elseif (! isempty (getenv ("DISPLAY"))) + term = "x11"; else - term = "x11"; + term = "unknown"; endif endif endfunction