|
From: Ethan A M. <merritt@u.washington.edu> - 2006-04-27 06:46:21
|
On Wednesday 26 April 2006 11:21 pm, you wrote: > 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? That worked because you ran the xterm on the remote machine, so it used the same display path as the gnuplot session. But if you do it that way then the entire management of the xterm goes over the net so it is relatively slow. This faster way is to ssh in and run gnuplot immediately (no remote xterm). That way the xterm window is local to your seat, and fast, but the gnuplot process is on the remote machine and uses a different server path. Since the konsole window and the plot window use different server paths, the "raise by window_id" cannot work. > 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 I prefer the "bind" option. > 2. Major changes > Let 'q' and ' ' be "bind"able. Needs routines raise_gnuplot_console yes. > term->quit_window. but we already support this, at least for x11, with no special API. > This would need the new API for interactive terminals. I disagree. The "close existing window" function is already present in the current terminal interface (see x11), and the raise_console function is not a terminal interface issue at all. At first I was confused, and thought that the core code should call such a term->raise_console() routine. But this doesn't work for all the reasons we went through earlier in this thread. So raise_console() would have to be a core routine. > 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. The "appropriate place" is exactly what we are struggling to find. It is not obvious where that place is. -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |