home *** CD-ROM | disk | FTP | other *** search
- /* vhidecur.c (emx+gcc) -- Copyright (c) 1987-1993 by Eberhard Mattes */
-
- #include <stdlib.h>
- #include <dos.h>
- #define INCL_VIO
- #include <os2emx.h>
- #include <sys/video.h>
- #include "video2.h"
-
- void v_hidecursor (void)
- {
- static VIOCURSORINFO cinfo;
-
- if (_osmode == OS2_MODE)
- {
- cinfo.yStart = 0;
- cinfo.cEnd = 0;
- cinfo.cx = 0; /* Default width */
- cinfo.attr = 0xffff; /* Invisible */
- VioSetCurType (&cinfo, 0);
- }
- else
- {
- union REGS r;
-
- r.h.ah = 0x01;
- r.h.cl = 0x00;
- r.h.ch = 0x20;
- _int86 (0x10, &r, &r);
- }
- }
-