home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 344_01 / crsr_typ.c < prev    next >
Text File  |  1990-02-21  |  988b  |  32 lines

  1. /*
  2. HEADER:        ;
  3. TITLE:        Bios function to set height of video cursor;
  4. VERSION:    1.0;
  5.  
  6. DESCRIPTION:    This function generates an interrupt 16 to set the type of
  7.         cursor and any that is displayed on the video screen;
  8.  
  9. KEYWORDS:    Bios, interrupt, cursor settings, video functions;
  10. SYSTEM:        MSDOS;
  11. FILENAME:       CURSOR_TYPE;
  12. WARNINGS:    None;
  13.  
  14. AUTHORS:    Dr. Ronald J. Terry;
  15. COMPILERS:    Turbo C;
  16. */
  17. /***************************************************************************
  18.  *   Function to set the type of cursor displayed on screen.  If ch = 32   *
  19.  *   and cl = 0 then the cursor will be invisible.  Use ch = 6 and cl = 7  *
  20.  *   for normal cursor.  Ch = starting scan line, cl = ending scan line.   *
  21.  ***************************************************************************/
  22.  
  23. void Cursor_type(int ch, int cl)
  24. {
  25. #include <dos.h>
  26. #define VIDEO  0x10
  27.      union REGS reg;
  28.      reg.h.ah = 1;
  29.      reg.h.ch = ch;
  30.      reg.h.cl = cl;
  31.      int86(VIDEO,®,®);
  32. }