X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fcurs_mouse.3x.html;h=af663a8f683fe892b04a94c96f4aee4e07442cdb;hp=452b582fba500af6681a3e4884688c82e80b76cf;hb=c6cfd97b8beaf0f6deafbf8aac7281cf6aa7f012;hpb=f9d358b4f3cf9b44727a0ee5c08f8ca6ae4e3821 diff --git a/doc/html/man/curs_mouse.3x.html b/doc/html/man/curs_mouse.3x.html index 452b582f..af663a8f 100644 --- a/doc/html/man/curs_mouse.3x.html +++ b/doc/html/man/curs_mouse.3x.html @@ -1,8 +1,7 @@ - + + + curs_mouse 3x @@ -40,32 +42,30 @@

curs_mouse 3x


-
 curs_mouse(3x)                                           curs_mouse(3x)
 
 
 
 
 
-

NAME

+

NAME

        has_mouse, getmouse, ungetmouse, mousemask, wenclose,
        mouse_trafo, wmouse_trafo, mouseinterval - mouse interface
        through curses
 
 
 
-

SYNOPSIS

+

SYNOPSIS

        #include <curses.h>
 
        typedef unsigned long mmask_t;
 
-       typedef struct
-       {
-           short id;         /* ID to distinguish multiple devices */
+       typedef struct {
+           short id;         /* ID to distinguish multiple devices */
            int x, y, z;      /* event coordinates */
            mmask_t bstate;   /* button state bits */
-       }
-       MEVENT;
+       } MEVENT;
+
        bool has_mouse(void);
        int getmouse(MEVENT *event);
        int ungetmouse(MEVENT *event);
@@ -78,7 +78,7 @@
 
 
 
-

DESCRIPTION

+

DESCRIPTION

        These  functions provide an interface to mouse events from
        ncurses(3x).  Mouse events are  represented  by  KEY_MOUSE
        pseudo-key values in the wgetch input stream.
@@ -112,8 +112,8 @@
        BUTTON2_DOUBLE_CLICKED   mouse button 2 double clicked
        BUTTON2_TRIPLE_CLICKED   mouse button 2 triple clicked
        ---------------------------------------------------------------------
-
        BUTTON3_PRESSED          mouse button 3 down
+
        BUTTON3_RELEASED         mouse button 3 up
        BUTTON3_CLICKED          mouse button 3 clicked
        BUTTON3_DOUBLE_CLICKED   mouse button 3 double clicked
@@ -138,7 +138,7 @@
        REPORT_MOUSE_POSITION    report mouse movement
        ---------------------------------------------------------------------
 
-       Once a class of mouse events have been made visible  in  a
+       Once a class of mouse events has been made  visible  in  a
        window, calling the wgetch function on that window may re-
        turn KEY_MOUSE as an indicator that a mouse event has been
        queued.   To read the event data and pop the event off the
@@ -207,7 +207,7 @@
 
 
 
-

RETURN VALUE

+

RETURN VALUE

        getmouse  and ungetmouse return the integer ERR upon fail-
        ure or OK upon successful completion.
 
@@ -231,7 +231,7 @@
 
 
 
-

PORTABILITY

+

PORTABILITY

        These calls were designed for  ncurses(3x),  and  are  not
        found in SVr4 curses, 4.4BSD curses, or any other previous
        version of curses.
@@ -269,14 +269,21 @@
        is initialized for mouse operation.  The default, if XM is
        not found, corresponds to private mode 1000 of xterm:
               \E[?1000%?%p1%{1}%=%th%el%;
+
        The z member in the event structure is not presently used.
        It is intended for use with touch screens  (which  may  be
        pressure-sensitive)   or   with   3D-mice/trackballs/power
        gloves.
 
+       The  ALL_MOUSE_EVENTS   class   does   not   include   RE-
+       PORT_MOUSE_POSITION.   They are distinct.  For example, in
+       xterm, wheel/scrolling mice send position reports as a se-
+       quence  of presses of buttons 4 or 5 without matching but-
+       ton-releases.
+
 
 
-

BUGS

+

BUGS

        Mouse events under xterm will not in fact be ignored  dur-
        ing  cooked  mode, if they have been enabled by mousemask.
        Instead, the xterm mouse report sequence  will  appear  in
@@ -299,17 +306,24 @@
 
 
 
-

SEE ALSO

-       curses(3x), curs_kernel(3x), curs_slk(3x).
+

SEE ALSO

+       curses(3x),  curs_kernel(3x),   curs_slk(3x),   curs_vari-
+       ables(3x).
 
 
 
                                                          curs_mouse(3x)
 
-
-
-Man(1) output converted with -man2html -
+