|
From: Ethan M. <merritt@u.washington.edu> - 2009-08-01 04:22:07
|
On Friday 31 July 2009, James R. Van Zandt wrote:
>
> I would like to propose the patch below, which makes three changes to
> the way mouse-mode (the display in the lower left corner of the mouse
> cursor location) and clipboard-mode (what is written to the clipboard
> on a double click) are handled:
A related thought has occurred to me.
While you're looking at the mouse coordinate code...
One thing I have wished for several times in the past is a mechanism
to make the mouse format persistent. That is, you can specify a mouse
format and as it is now the format remains in effect while the plot is
still current. But if you disconnect from the plot, often because of
the following scenario:
gnuplot -persist myplot.gp
then even if the mouse format is set in the command script, it is lost
immediately and you only get the default mouse format.
The same issue arises if you want to specify a mouse format for use
with the canvas terminal. Since the mousing events are never going
to be seen by mouse.c, handling the format there doesn't do any good.
This would mean pushing the format out to the drivers (gnuplot_x11
gnuplot_mouse.js wxt_gui.cpp ...) rather than handling it in mouse.c.
I don't so much care if the idea is fully implemented immediately
for all drivers, but if we at least agree on a framework then I might
have a go at adding support to the canvas terminal.
|