Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
NAME
has_mouse, getmouse, ungetmouse, mousemask, wenclose, mouse_trafo, wmouse_trafo, mouseinterval — Curses mouse interfaceLIBRARY
Curses Library (libcurses, -lcurses)SYNOPSIS
#include <curses.h>has_mouse(void);
getmouse(MEVENT *event);
ungetmouse(MEVENT *event);
mousemask(mmask_t newmask, mmask_t *oldmask);
wenclose(const WINDOW *win, int y, int x);
mouse_trafo(int *y, int *x, bool to_screen);
wmouse_trafo(const WINDOW *win, int *y, int *x, bool to_screen);
mouseinterval(int erval);
DESCRIPTION
This is the curses interface to mouse events. Mouse events are reported via the KEY_MOUSE value in the wgetch(3) input stream.RETURN VALUES
Unless otherwise noted, the functions that return an int will return one of the following values:- OK
- The function completed successfully.
- ERR
- An error occurred in the function.