|
From: Ethan M. <merritt@u.washington.edu> - 2003-11-12 23:31:31
|
Any objections if I update all terminal drivers in the CVS tree to
explicitly enumerate all entries in TERM_TABLE?
For example:
diff -urNP gnuplot/term/aed.trm gnuplot-enhanced/term/aed.trm
--- gnuplot/term/aed.trm 1999-06-22 04:54:13.000000000 -0700
+++ gnuplot-enhanced/term/aed.trm 2003-11-10 20:35:38.000000000 -08=
00
@@ -183,7 +183,15 @@
AED_VTIC, AED_HTIC, options_null, AED_init, AED_reset,
AED_text, null_scale, AED_graphics, AED_move, AED_vector,
AED_linetype, AED_put_text, null_text_angle,
- null_justify_text, do_point, do_arrow, set_font_null
+ null_justify_text, do_point, do_arrow, set_font_null, NULL,
+ 0, /* flags */
+ NULL, NULL, NULL, NULL
+#ifdef MOUSE
+ , NULL, NULL, NULL, NULL, NULL
+#endif
+#ifdef PM3D
+ , NULL, NULL, NULL, NULL
+#endif
TERM_TABLE_END(aed512_driver)
=20
The reason for doing this is that I would like to add a new
set of TERM_TABLE entries to support enhanced mode
text. I've split out the driver-independent parts and moved them
to term.c. This requires driver-callbacks to do the actual=20
output. There is no particular reason that a driver couldn't
support enhanced text without supporting MOUSE or PM3D,
and leaving the various TERM_TABLEs incompletely
specified is just asking for trouble if someone later tries to=20
implement the new call-backs at the end of an incomplete
table.
--=20
Ethan A Merritt merritt@u.washington.edu
Biomolecular Structure Center Box 357742
University of Washington, Seattle, WA 98195
|