Windows ginput function [Was: fopen doesn't return when opening a fifo!!]
Petr Mikulik
mikulik at physics.muni.cz
Thu Apr 3 01:05:51 CDT 2008
> I don't understand why there would be missed clicks, but maybe I'm
> missing something about the implementation in gnuplot. Wouldn't the
> information about the clicks be written to the output regardless of
> what Octave is doing? Oh, I see now, we are only catching one click
> for each "pause mouse any" command. Never mind.
>
> | I believe the attached patch should work as you'd like it to.
>
> OK, I applied it.
>
> Instead of checking ispc(), maybe we should just try mkfifo and see
> whether it works and if not, use in-line communication?
I've tried to use the ginput function with mkfifo, run ginput(3); and
"killall -9 gnuplot" in the meantime. ginput exits, which is expected.
Thus, mkfifo() seems to have no problems.
Otherwise, for a sequent plot(), the following message appears:
warning: broken pipe -- some output may be lost
but the same happens if you "killall" gnuplot after a plot().
If gnuplot is killed after a plot(), no plot can be drawn afterwards because
of the broken pipe. Could this be fixed? Could Octave restart gnuplot?
---
Petr Mikulik
More information about the Bug-octave
mailing list