|
From: Daniel J S. <dan...@ie...> - 2005-06-15 05:42:20
|
Ethan Merritt wrote:
> On Tuesday 14 June 2005 03:09 pm, mi...@ph... wrote:
>
>>If it was under X11, have you used the new feature of an x11 handle from
>>sourceforge patches? This patch waits for confirmation that it works.
I've updated things on my system. The demo works as originally designed except
for one problem. The buttons and list items need to be pressed several times to
cause the actions of starting a new demo or clearing a demo. It seems to be a
random number of times, but usually two or three times.
Can anyone think of any changes in gnuplot that might cause problems with the
following tcl lines?
# Send an ctrl-C to gnuplot in case a different demo is running.
exec kill -INT [pid $gpfd]
set file [file join $dirName [.sel.f.list get @$x,$y]]
# Some demos may have set terminal and failed to set it back.
gnuplot "set term x11; reset; load \"$file\""
Or similarly, this line?
button .plt.buttons.bstop -text Reset -command {exec kill -INT [pid $gpfd];
gnuplot "reset; clear"}
The idea in both cases is to issue a CNTRL-C to the gnuplot process to break out
of any currently running demo, then issue "reset", then proceed.
This used to work fine. Could something have changed where the CNTRL-C doesn't
occur until the "reset; clear" is partially through the pipe?
Dan
|