|
From: Chris K <gnu...@li...> - 2006-04-02 21:45:49
|
Petr Mikulik wrote: >> 7) The magic number of the protocol are in "src/gplt_x11.h" instead of >> x11.trm >> >> Looking at pm.trm : It use a pipe of some kind > > It is just > FILE *PM_pipe > >> and include "os2/pm_msgs.h" for the magic numbers of the binary >> protocol, a file that is not part of gnuplot. > > ?? This file IS part of gnuplot sources: src/os2/pm_msgs.h > > BTW, pm.trm is used for a long time in a perl graphics by Ilya > Zakharevich for what I think looks exactly what you wish to achieve > (parsing and drawing those fprintf'ed commands instead of gnupmdrv). > > --- > PM > Hmm...It seems that pm.trm does produce a reasonable binary protocol. One things that looks nasty to understand from the code is the way it starts communication with the other process. And pm.trm is not an option on unix. The DosRead command, for instance, is not defined in any of the files in gnuplot's code. -- Chris |