|
From: Ethan M. <merritt@u.washington.edu> - 2004-12-21 02:32:32
|
On Monday 20 December 2004 12:49 am, Jacques Bouchard wrote:
> If there were a way to trigger the pause command from a non-active X11
> terminal (and then to know its id), it would be possible to activate it
> (by replotting it).
It would be possible to pass back keypress events from keys set with
the "bind" command, including a parameter that contains the id of the
window in which the key was pressed. Using that parameter in the
bound command would be a bit tricky, however.
Hmmmm.
Would it be sufficient to reserve a variable for this returned window id
parameter? Then your bind command would look something like this:
bind End 'n = sprintf("%d",MOUSE_WINDOW_ID); set term x11 MOUSE_WINDOW_ID;
load "plot.".n'
There are probably a number of things that will cause this to fail in
the current code, but I think they could all be made to work.
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington 98195-7742
|