From: <tim...@en...> - 2006-04-26 20:15:19
|
> Even still, as this currently works on my X11 system the space bar does= n't > even "raise the console"; it merely gives the console focus. So, one > presses the space bar on top of a plot and can type a command to > regenerate a plot. It works, but if there is some other window origina= lly > obscuring the console, one can't see the letters as typed which is > somewhat dodgy, because then you are forced to go back to the windowing > menu bar anyway. Hmm... It may not be what you wanted to say, but we can take that as an extra argument to remove the feature, i.e .there's another obstacle that makes it unreliable : the focus-stealing-prevention mechanism that is activated by default on several desktops. > Furthermore, wouldn't it be prefered that if one typed a space in the p= lot > in question then entered a command that it would be the plot in which t= he > space bar was typed that will change (i.e., an inherent "set term x11 #= ")? That's an interesting idea, which goes along with the fact that the multiple_plot_windows feature is currently very limited (i.e. only one really active window). > It's a reasonable feature to want in some way. That is, "I have this p= lot > and I want to know where the console is that it originated from". (But > right, if there is some networking to outside computers and back into a= n X > window, then it makes no sense.) I suppose the X11 manager would be ju= st > as good for finding this console. That makes me think of a different approach to associate a console window and a plot window : make the prompt and the window title change accordingly. Advantage : both of them are really managed by gnuplot, so that is reliable and cross-platform. Drawback : not as straightforward, For example, the first instance of gnuplot would have the prompt "gnuplot>", and the window would be entitled "gnuplot", a second instance could have the prompt "gnuplot(2)>", and the window would be entitled "gnuplot(2)", etc. Many programs I know are able to recognize if an instance is already running. So I guess we could be able to do it too, and to use this information to change the prompt. Is that satisfying ? Timoth=E9e |