|
From: Reinier H. <re...@he...> - 2008-11-10 16:12:09
|
Hi, First of all: thanks for the great tool! However, I have a few windows-specific issues integrating gnuplot with some software I'm writing. I use the python Gnuplot class to write commands to a gnuplot instance, which works very well. When wgnuplot is closed manually, the pgnuplot program stays alive. It is therefore very hard to detect whether the gnuplot instance has been killed (in which case I want to respawn one). I've attached a patch to pgnuplot.c to fix this issue: it will check whether the wgnuplot process is still alive when it receives input. By writing an empty string from my python program twice (with a small delay in between) I can detect that wgnuplot is closed. Perhaps it would be even better to call select() on stdin, but I think this is usually good enough. The second problem is that my programs spawns quite a few gnuplot instances, and they become hard to distinguish. On linux the wxt terminal supports a "title" option that allows to give the windows a title, e.g. set terminal wxt title "test". It would be great to have this in the windows terminal too. I think it shouldn't be too hard to do, but I don't exactly know where to start. Any pointers? I guess the first time the title is set is in src/win/winmain.c. Regards, -- Reinier Heeres Waalstraat 17 2515 XK Den Haag The Netherlands Tel: +31 6 10852639 |