# HG changeset patch # User Stefan Hepp # Date 1257215644 18000 # Node ID 4634a0e9ea1b43041cfa4ff2b2e3e2ad76206e83 # Parent 1a69a9c0ee007ec297f9054349460c7eaf73e839 gnuplot_drawnow.m (gnuplot_default_term): don't set term to x11 unless DISPLAY is set diff --git a/doc/interpreter/contributors.in b/doc/interpreter/contributors.in --- a/doc/interpreter/contributors.in +++ b/doc/interpreter/contributors.in @@ -74,6 +74,7 @@ Dave Hawthorne Daniel Heiserer Martin Helm +Stefan Hepp Yozo Hida Ryan Hinton Roman Hodek diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2009-11-02 Stefan Hepp + + * plot/gnuplot_drawnow.m (gnuplot_default_term): Don't set term to + x11 unless DISPLAY is set. + 2009-11-02 Jaroslav Hajek * general/interp1.m: Simplify. diff --git a/scripts/plot/gnuplot_drawnow.m b/scripts/plot/gnuplot_drawnow.m --- a/scripts/plot/gnuplot_drawnow.m +++ b/scripts/plot/gnuplot_drawnow.m @@ -328,8 +328,10 @@ term = "aqua"; elseif (! isunix ()) term = "windows"; + elseif (! isempty (getenv ("DISPLAY"))) + term = "x11"; else - term = "x11"; + term = "unknown"; endif endif endfunction