home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / pc_hw / co80 / scgetc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-11  |  247 b   |  14 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #include "sc.h"
  3.  
  4. void    
  5. ScreenGetCursor(int *_row, int *_col)
  6. {
  7.   __dpmi_regs r;
  8.   r.h.ah = 3;
  9.   r.h.bh = 0;
  10.   __dpmi_int(0x10, &r);
  11.   *_row = r.h.dh;
  12.   *_col = r.h.dl;
  13. }
  14.