Mercurial > octave-nkf
comparison scripts/plot/private/__gnuplot_has_terminal__.m @ 12352:b7242f2c0165 release-3-4-x
Simplify regexp to make it POSIX compliant.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Mon, 31 Jan 2011 12:38:03 -0800 |
parents | c792872f8942 |
children | 72c96de7a403 |
comparison
equal
deleted
inserted
replaced
12314:a275d7bf12f1 | 12352:b7242f2c0165 |
---|---|
33 if (__gnuplot_has_feature__ ("variable_GPVAL_TERMINALS")) | 33 if (__gnuplot_has_feature__ ("variable_GPVAL_TERMINALS")) |
34 if (nargin < 2) | 34 if (nargin < 2) |
35 plot_stream = __gnuplot_open_stream__ (2); | 35 plot_stream = __gnuplot_open_stream__ (2); |
36 endif | 36 endif |
37 available_terminals = __gnuplot_get_var__ (plot_stream, "GPVAL_TERMINALS"); | 37 available_terminals = __gnuplot_get_var__ (plot_stream, "GPVAL_TERMINALS"); |
38 available_terminals = regexp (available_terminals, '\b\w+\b', "match"); | 38 available_terminals = regexp (available_terminals, '\w+', "match"); |
39 if (nargin < 2 && ! isempty (plot_stream)) | 39 if (nargin < 2 && ! isempty (plot_stream)) |
40 pclose (plot_stream(1)); | 40 pclose (plot_stream(1)); |
41 if (numel (plot_stream) > 1) | 41 if (numel (plot_stream) > 1) |
42 pclose (plot_stream(2)); | 42 pclose (plot_stream(2)); |
43 endif | 43 endif |