home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / prof_c / 05oslib / bios / putcur.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-08-11  |  474 b   |  26 lines

  1. /*
  2.  *    putcur -- put cursor at specified position (row, col) 
  3.  */
  4.  
  5. #include <dos.h>
  6. #include <local\std.h>
  7. #include <local\bioslib.h>
  8.  
  9. putcur(r, c, pg)
  10. unsigned int
  11.     r,    /* row */
  12.     c,    /* column */
  13.     pg;    /* screen page for writes */
  14. {
  15.     union REGS inregs, outregs;
  16.  
  17.     inregs.h.ah = CUR_POS;
  18.     inregs.h.bh = pg & 0x07;
  19.     inregs.h.dh = r & 0xFF;
  20.     inregs.h.dl = c & 0xFF;
  21.  
  22.     int86(VIDEO_IO, &inregs, &outregs);
  23.  
  24.     return (outregs.x.cflag);
  25. } /* end putcur() */
  26.