|
From: Tatsuro M. <tma...@ya...> - 2009-12-13 06:28:25
|
Hello
Perhaps to overcome the issue of the 'pause mouse' in gnuplot.exe on windows , win.trm should be
modified,
***********************************************
#ifdef WGP_CONSOLE
TERM_PUBLIC int
WIN_waitforinput ()
{
return ConsoleGetch();
}
#endif /* WGP_CONSOLE */
**********************************************
This only waits for keybord input.
For both x11 and wxt term some routines are described.
What is the good way to overcome issue?
Which code should be modified in commnand.c or win.trm.
For wgnuplot, where WGP_CONSOLE flag is false, paused_for_mouse routine is described in command.c,
*************************************
#if defined(_Windows) && !defined(WGP_CONSOLE)
if (paused_for_mouse && !graphwin.hWndGraph) {
if (interactive) { /* cannot wait for Enter in a non-interactive session without the graph window */
char tmp[512];
if (buf) fprintf(stderr,"%s\n", buf);
fgets(tmp, 512, stdin); /* graphical window not yet initialized, wait for any key here */
}
} else { /* pausing via graphical windows */
int tmp = paused_for_mouse;
if (buf && paused_for_mouse) fprintf(stderr,"%s\n", buf);
if (!Pause(buf)) {
if (!tmp) {
bail_to_command_line();
} else {
if (!graphwin.hWndGraph)
bail_to_command_line();
}
}
}
*****************************
When I use 'pause mouse' on wgnuplot, a phase 'paused' is printed in text screen but not in the pause
dialog box.
Therefore it will be nice to render this method for WGP_CONSOLE is true. However, simple trial
affects 'pause' command. The 'pause -1' command gives the pause dialog box. That should be avoided
on the gnuplot.exe.
The aboves are all I can tell at present.
Regards
Tatsuro
--- Tatsuro MATSUOKA wrote:
> Hello
>
> I have not yet gotten successful results on this issue.
> I would like to report one notice.
>
> set term windows
> plot sin(x)
> pause mouse
>
> print MOUSE_X
> print MOUSE_Y
>
>
> #
> Clicking mouse did not break 'pause mouse' but pressing a key on the keyboard broke 'pause
> mouse'.
> That was reported previously.
>
> After breaking 'pause mouse' by pressing a key, I tried print XY coordinates of the point of
> mouse
> cursor.
>
> gnuplot> set term win
> Terminal type set to 'windows'
> Options are 'color noenhanced'
> gnuplot> plot sin(x)
> gnuplot> pause mouse
> gnuplot> print MOUSE_X
> -6.73839400734768
> gnuplot> print MOUSE_Y
> -0.0106162447389911
> gnuplot>
>
> The MOUSE_X and MOUSE_Y values seemed to be reasonable and this means that the point of mouse
> cursor
> seem to be read correctly.
>
> I have to solve why the mouse click cannot break the 'pause mouse' on gnuplot.exe while, on
> wgnuplot.exe, the mouse click can break the 'pause mouse'.
>
> Regards
>
> Tatsuro
>
>
>
>
> --------------------------------------
> Get Disney character's mail address on Yahoo! Mail
> http://pr.mail.yahoo.co.jp/disney/
>
--------------------------------------
Get Disney character's mail address on Yahoo! Mail
http://pr.mail.yahoo.co.jp/disney/
--------------------------------------
Get Disney character's mail address on Yahoo! Mail
http://pr.mail.yahoo.co.jp/disney/
|