Mercurial > octave-nkf
diff scripts/plot/gnuplot_drawnow.m @ 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 | 40acd13920e3 |
children | ccad98db781b |
line wrap: on
line diff
--- 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