SHA256
1
0
forked from pool/gnuplot
gnuplot/gnuplot-4.2.0-wxt.dif

47 lines
1.3 KiB
Plaintext

--- src/plot.c
+++ src/plot.c 2007-04-24 12:21:32.000000000 +0200
@@ -591,6 +591,8 @@
#endif /* GNUPLOT_HISTORY */
fprintf(stderr, "\nTerminal type set to '%s'\n", term->name);
+ if (!strncmp("wxt", term->name, 3))
+ fprintf(stderr, "Warning: terminal 'wxt' is experimental\n");
} /* if (interactive && term != 0) */
} else {
/* come back here from int_error() */
--- src/term.c 2006-10-06 01:52:18.000000000 +0200
+++ src/term.c 2007-04-24 12:21:51.000000000 +0200
@@ -1555,6 +1555,8 @@
}
if (interactive)
fprintf(stderr, "Terminal type set to '%s'\n", term->name);
+ if (interactive && !strncmp("wxt", term->name, 3))
+ fprintf(stderr, "Warning: terminal 'wxt' is experimental\n");
/* Invalidate any terminal-specific structures that may be active */
invalidate_palette();
@@ -1620,11 +1622,6 @@
term_name = "sun";
#endif /* SUN */
-#ifdef WXWIDGETS
- if (term_name == (char *) NULL)
- term_name = "wxt";
-#endif
-
#ifdef _Windows
/* let the wxWidgets terminal be the default when available */
if (term_name == (char *) NULL)
@@ -1660,6 +1657,11 @@
term_name = "x11";
#endif /* x11 */
+#ifdef WXWIDGETS
+ if (term_name == (char *) NULL)
+ term_name = "wxt";
+#endif
+
#ifdef AMIGA
term_name = "amiga";
#endif