|
From: Kevin O. <rko...@gm...> - 2018-07-18 20:27:53
|
On Wed, Jul 18, 2018 at 10:10 AM, Gunter Königsmann <gu...@pe...> wrote: > I hate finding threads in the internet that don't contain a solution => > writing how far I got: > > - Windows allows to open applications with and without a console. > Opening gnuplot (or wgnuplot) causes 100% of one CPU to be consumed. > - Windows allows to hide the console. If the console of gnuplot or > wgnuplot is hidden the plot window is hidden, too. > > => I can open gnuplot with a console and show the console and will get a > plot - and a superfluous window. But I guess I can live with that. > > And I have to add a 3-line construct to my file in order to make the > console window autoclose whilst keeping the window live (aka reacting to > the mouse): > > > bind "Close" "exit gnuplot" > pause mouse close > exit > > Kind regards, > > Gunter. > > ------------------------------------------------------------ > ------------------ > I had that issue about 14 years ago and put in a signal handler that killed gnuplot on a SIGTERM or other terminating signals. (I was forking gnuplot off of a parent that used chat to communicate with gnuplot.) That is another approach that worked well before pause came on the scene. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rko...@gm... PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 |