home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / CSCAP323.ZIP / OWLSRC.EXE / PCBSETCU.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-28  |  1.1 KB  |  47 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-PC 1.2
  10.     Copyright (c) 1988, by Oakland Group, Inc.
  11.     ALL RIGHTS RESERVED.
  12.  
  13.     Revision History:
  14.     -----------------
  15.      3/28/90 jmd    ansi-fied
  16. */
  17.  
  18. #include "pcpriv.h"
  19. /* -------------------------------------------------------------------------- */
  20.  
  21. void DIGPRIV pc_bsetcursortype(cursortype ctype, unsigned short nlines)
  22. {
  23.     OREGS regs;
  24.     opcoord start, end;
  25.  
  26.     dig_getcurslines(ctype, nlines, &start, &end);
  27.     regs.h.ch = (byte)start;
  28.     regs.h.cl = (byte)end-1;
  29.     
  30.     regs.h.ah = VIDINT_SETT;
  31.     oakint86(BIOS_VIDINT, ®s);
  32. }
  33. /* -------------------------------------------------------------------------- */
  34.  
  35. void DIGPRIV pc_bsetcursorpos(int row, int col)
  36. {
  37.     OREGS regs;
  38.  
  39.     regs.h.dl = ((byte) col);        /* set global cursor col */
  40.     regs.h.dh = ((byte) row);        /* set global cursor row */
  41.     regs.h.ah = VIDINT_SETC;
  42.     regs.h.bh = TEXT_RPAGE;
  43.     oakint86(BIOS_VIDINT, ®s);
  44. }
  45. /* -------------------------------------------------------------------------- */
  46.  
  47.