The set term qt command is inside the script. The script consists of the lines I quoted above.
Dear Ethan, I figured that this issue is triggered by using the terminal "qt". So this is the minimal code required to observe this behaviour: set term qt plot [-1:1] sin(x)/x I do not observe this behaviour when using term wxt.
Thanks, Ethan, pressing ctrl-C on the console does the trick.
Detect batch mode (or console mode) in script
This support ticket can be closed. I don't know how to do this.
If anybody is interested: this is my way to extract the script name from ARG0: start=1; while(1) { pos=strstrt(ARG0[start:], '\') ; if(pos==0) {break;}; start=start+pos; }; scriptname=ARG0[start:] print "script name='".scriptname."'" works on Windows.
Thanks a lot. That's helpful.
make script file name available to script code