home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c185 / 2.ddi / OWLSRC.EXE / CSCAPE / SOURCE / PCBSETCU.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  1.1 KB  |  50 lines

  1. /*
  2.     pcbsetcu.c
  3.  
  4.     % BIOS set cursor routines
  5.  
  6.     10/19/88  by Ted.
  7.     Extracted from pcdisp.c
  8.  
  9.     OWL 1.1
  10.     Copyright (c) 1988, by Oakland Group, Inc.
  11.     ALL RIGHTS RESERVED.
  12.  
  13.     Revision History:
  14.     -----------------
  15. */
  16.  
  17. #include "pcpriv.h"
  18. /* -------------------------------------------------------------------------- */
  19.  
  20. void DIGPRIV pc_bsetcursortype(ctype, nlines)
  21.     cursortype ctype;
  22.     unsigned short nlines;
  23. {
  24.     OREGS regs;
  25.     opcoord start, end;
  26.  
  27.     dig_getcurslines(ctype, nlines, &start, &end);
  28.     regs.h.ch = (byte)start;
  29.     regs.h.cl = (byte)end-1;
  30.     
  31.     regs.h.ah = VIDINT_SETT;
  32.     oakint86(BIOS_VIDINT, ®s);
  33. }
  34. /* -------------------------------------------------------------------------- */
  35.  
  36. void DIGPRIV pc_bsetcursorpos(row, col)
  37.     int row;
  38.     int col;
  39. {
  40.     OREGS regs;
  41.  
  42.     regs.h.dl = ((byte) col);        /* set global cursor col */
  43.     regs.h.dh = ((byte) row);        /* set global cursor row */
  44.     regs.h.ah = VIDINT_SETC;
  45.     regs.h.bh = TEXT_RPAGE;
  46.     oakint86(BIOS_VIDINT, ®s);
  47. }
  48. /* -------------------------------------------------------------------------- */
  49.  
  50.