home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / VIDEO / VHIDECUR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-02  |  639 b   |  32 lines

  1. /* vhidecur.c (emx+gcc) -- Copyright (c) 1987-1993 by Eberhard Mattes */
  2.  
  3. #include <stdlib.h>
  4. #include <dos.h>
  5. #define INCL_VIO
  6. #include <os2emx.h>
  7. #include <sys/video.h>
  8. #include "video2.h"
  9.  
  10. void v_hidecursor (void)
  11. {
  12.   static VIOCURSORINFO cinfo;
  13.  
  14.   if (_osmode == OS2_MODE)
  15.     {
  16.       cinfo.yStart = 0;
  17.       cinfo.cEnd = 0;
  18.       cinfo.cx = 0;             /* Default width */
  19.       cinfo.attr = 0xffff;      /* Invisible */
  20.       VioSetCurType (&cinfo, 0);
  21.     }
  22.   else
  23.     {
  24.       union REGS r;
  25.       
  26.       r.h.ah = 0x01;
  27.       r.h.cl = 0x00;
  28.       r.h.ch = 0x20;
  29.       _int86 (0x10, &r, &r);
  30.     }
  31. }
  32.