|
From: Ethan A M. <merritt@u.washington.edu> - 2007-11-24 01:25:12
|
On Friday 23 November 2007 16:56, pl...@pi... wrote: > On Sat, 24 Nov 2007 01:24:09 +0100, Allin Cottrell <cot...@wf...> > wrote: > > > > gp_cairo.h: #define GP_CAIRO_SCALE 20 > > > > So you should probalby be using the named const not a number. No core routine should be peering into the code of individual terminal drivers, nor making terminal-specific decisions. If it is necessary to get additional information from the terminal, it should either be returned by one of the terminal entry routines term->foo() or be exported directly in the terminal table analogous to term->xmax and term-ymax. But please also think of alternative ways to accomplish this. For instance, instead of setting these GPVAL_GRAPH_XMIN values from a core routine, how about the driver setting them as part of the term->text() processing? In that case we might want to start up a new series of exported variable names. We already have GPVAL_*, MOUSE_*, and FIT_*. These could be TERM_* or AXISCALE_* or something like that. -- Ethan A Merritt |