|
From: Petr M. <mi...@ph...> - 2006-04-27 06:21:38
|
>>> Give up on the whole idea of a generic mechanism for raising the console.
>>> It was not well thought out to begin with, and in fact is not even a
>>> well-defined operation.
The current spacebar is an operation which works well on "single-user" OS/2,
Windows, and Linux. In the latter, there are many X11 window managers that
can be set up into a dozen of behaviours, and you can set them up so the
current spacebar operation is canceled by the window manager. But then it is
not the private problem of gnuplot.
If you do some other tricks with X11 (logging into other servers, tunnelling
your X11 protocol), then it may not work, as you have noticed.
Actually ... I've just tried to ssh' -X to our server from Konsole, run
xterm, run gnuplot, plot x, spacebar, and gnuplot pops up! So it should work
also for you, why not?
> Even still, as this currently works on my X11 system the space bar doesn't
> even "raise the console"; it merely gives the console focus.
In all my environments it was always doing both...
>> * it will make the spacebar be a valid key to return from a pause (it is
>> * it won't break old scripts as it is only an interactive feature
>> If we finally choose this alternative, I would also drop the bound between
>> 'q' and 'close this window' :
OK with me, but let those chars to be "bind" by default.
> there's another obstacle that makes it unreliable : the
> focus-stealing-prevention mechanism that is activated by default on
> several desktops.
In recent versions of KDE, you must set "control center => windows behaviour
=> advanced => protection level against stealing (??? or somehow like that)
=> None". This info should probably go into "help mouse".
In summary, there are two ways what to do:
1. No major changes
wxterminal copies the raising code from gclient, gplt_x11 and wgraph,
or
the code is moved into mousecmn.c and to be called from the above sources
2. Major changes
Let 'q' and ' ' be "bind"able. Needs routines raise_gnuplot_console and
term->quit_window. This would need the new API for interactive terminals.
If somebody wants to improve windows changes in some X11 combinations (as I
did for KDE, for example), he can contribute it to the appropriate place of
code, independently of the above ways.
---
PM
|