On Thursday 28 April 2005 06:32 am, Robert Hart wrote:
> Yes, I have started using that, although you either need to add the
> pslatex or remover the postscript driver, because they are
Yes. the pslatex driver got totally revamped recently and I don't
think the configure + build files have entirely caught up.
> Is there any documentation about how mouse events are passed back to
Not really. I have come to a gradual understanding of the x11
implementation, but only by exploration of the source code.
So far as I know, the windows and os2 mousing doesn't have much
in common with x11, but I have never worked with them so I don't
know. Feel free to ask questions about how specific things work
in x11, however.
> The X11 driver seems the most "feature complete", but because it does the
> (incredibly complicated) IPC thing, its quite hard to follow as an
What are you trying to do, exactly? If you want to write an entirely
new driver, then you don't really need to use x11.trm as a model.
As you say, the x11 implementation is convoluted because of the
external process and piped commumication. I'm afraid each new terminal
device is likely to be quite different from existing ones, so you may
need to rethink how interaction is done.
For example, one thing I'd love to see is mousing support for
the svg driver, so that you could use gnuplot to generate interactive
web pages. But in that case the mousing interaction will happen long
after gnuplot has generated the svg output, so it must be implemented
as some sort of jscript or other module that is wrapped with the
generated svg for later execution. I can't see that it would share
much of anything with the x11 mousing code.
> and how colours/palettes work for the PM3D thing?
That really is pretty generic, particularly for a true RGB color
output device. If a new driver provides the documented entry
routines, then the core code should do the rest. I'd suggest looking
at pdf.trm as an example, or maybe svg.trm.
Ethan A Merritt merritt@...
Biomolecular Structure Center
University of Washington, Seattle, WA 98195