changeset 12102:52d8ad5d28d6 release-3-2-x

gnuplot_drawnow.m (gnuplot_default_term): don't set term to x11 unless DISPLAY is set
author Stefan Hepp <stefan@stefant.org>
date Tue, 24 Nov 2009 08:02:00 +0100
parents ae70ce64beb7
children a14e15613509
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
+++ b/doc/interpreter/contributors.in
@@ -72,6 +72,7 @@
 Dave Hawthorne
 Daniel Heiserer
 Martin Helm
+Stefan Hepp
 Yozo Hida
 Ryan Hinton
 Roman Hodek
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -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-11  John W. Eaton  <jwe@octave.org>
 
 	* plot/stairs.m (__stairs__): Correct nargin check.  New demos.
--- a/scripts/plot/gnuplot_drawnow.m
+++ b/scripts/plot/gnuplot_drawnow.m
@@ -326,8 +326,10 @@
       term = "aqua";
     elseif (! isunix ())
       term = "windows";
+    elseif (! isempty (getenv ("DISPLAY")))
+      term = "x11";
     else
-      term = "x11";
+      term = "unknown";
     endif
   endif
 endfunction