Am 09.03.2016 um 18:36 schrieb MBaz:
> gnuplot> set term qt
> gnuplot> plot(sin(x))
> gnuplot> set term qt 0 close
>
> the plot window doesn't close. However, when using wxt, the plot window closes as expected. This happens in both gnuplot 4.6.6 and 5.0.2, on Ubuntu and on Arch Linux.
>
> Is this a bug? What is the correct way to close a qt plot window from gnuplot's command line?
Definitively a bug. gp5.03 on windows has mixed reactions. First try
gave an error message that gnuplot_qt.exe has crashed. Next try with
new terminal worked after a hang of 30 seconds or so.
After starting a new session the command to close the terminal
window is first silently ignored, then crashes gnuplot_qt.exe again.
Looks like the "close" command can get lost in the communication
between gp core and the terminal code.