On 10-Mar-2009, Ben Abbott wrote:
| Some weeks ago I wrote a short function to obtain values for
| gnuplot's public variables.
|
| ... which can be used to obtain the version and patch-level
|
| ver = __gnuplot_get_var__ (gcf, "GPVAL_VERSION");
| level = __gnuplot_get_var__ (gcf, "GPVAL_PATCHLEVEL");
|
| ... the X11 window id
|
| window_id = __gnuplot_get_var__ (gcf, "GPVAL_TERM_WINDOWID");
|
| ... as well as the available gnuplot terminals
|
| terms = regexp (__gnuplot_get_var__ (gcf, "GPVAL_TERMINALS"), "\\b
\\w+
| \\b", "match");
|
| Shall I commit this function and add a check to gnuplot_drawnow to
| verify the terminal type is available in gnuplot just after the plot
| stream is opened?
Please post the function so we can discuss the implementation.
jwe