Mercurial > octave
comparison scripts/plot/gnuplot_drawnow.m @ 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 | f12b581a1572 |
children | a14e15613509 |
comparison
equal
deleted
inserted
replaced
12101:ae70ce64beb7 | 12102:52d8ad5d28d6 |
---|---|
324 if (isempty (term)) | 324 if (isempty (term)) |
325 if (ismac ()) | 325 if (ismac ()) |
326 term = "aqua"; | 326 term = "aqua"; |
327 elseif (! isunix ()) | 327 elseif (! isunix ()) |
328 term = "windows"; | 328 term = "windows"; |
329 else | 329 elseif (! isempty (getenv ("DISPLAY"))) |
330 term = "x11"; | 330 term = "x11"; |
331 else | |
332 term = "unknown"; | |
331 endif | 333 endif |
332 endif | 334 endif |
333 endfunction | 335 endfunction |
334 | 336 |
335 function [term, opts] = gnuplot_trim_term (string) | 337 function [term, opts] = gnuplot_trim_term (string) |