|
From: Petr M. <mi...@ph...> - 2003-10-22 08:15:58
|
> The Octave problem can, I believe, be solved with the first
> patch attached below (ipc_lock.patch). This one causes
> X11_waitforinput() to refuse to read any more characters
> using getc(stdin) while it is waiting for a response from the
> mousing pipe.
>
> This still leaves awk losing many lines of input, which is
> fixed only if I also remove the call to setvbuf() as in the
> second patch below (setvbuf.patch).
On my machine, the 2 patches pass the two problems. However, there is a new
one: the Octave script below works differently whether the first Octave
command was "gset mouse"
#gset mouse
n=30;
x=linspace(100,5000,30);
y=x+100;
title('first plot')
plot(x,y);
title('second plot')
plot(1-x,log10(y),x,log10(y),'b*');
title('third plot')
plot(1000-x,1000-y,x,y,'g*');
If there is no "gset mouse", then it displays all 3 plots.
If there is "gset mouse", it displays only the 1st plot, and waits until you
do whatever "gset ..." command -- then it displays all the rest. Seems like
something is waiting in the buffer.
---
Petr Mikulik
|