1vga_showcursor(3)             Svgalib User Manual            vga_showcursor(3)
2
3
4

NAME

6       vga_showcursor - show / hide mouse cursor
7

SYNOPSIS

9       #include <vga.h>
10
11       void vga_showcursor(int show);
12
13

DESCRIPTION

15       if show == 0, hides the cursor.
16
17       if show == 1, shows the cursor.
18
19       if show == 2, hides the cursor only if a software cursor is in use.
20
21

NOTES

23       The show == 2 case is needed, since drawing over the software cursor is
24       not allowed. This means that when the program needs to draw and can not
25       be sure that the cursor is not overwritten, it needs to hide the cursor
26       before drawing. This might cause the cursor to flicker. If  the  cursor
27       is hidden by calling vga_showcursor(2) (instead of vga_showcursor(0) ),
28       then hardware cursor will not flicker.
29
30

SEE ALSO

32       svgalib(7),  mouse_init(3),   vga_selectcursor(3),   vga_initcursor(3),
33       vga_setcursorposition(3), vga_setcursorimage(3),
34
35

AUTHOR

37       This manual page written by Matan Ziv-Av <matan@svgalib.org>.
38
39
40
41
42Svgalib (>= 1.9.6)               23 June 2001                vga_showcursor(3)
Impressum