home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / msdos / dskutl / dsktst.arc / CLRCRT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1985-08-07  |  640 b   |  18 lines

  1. #include "dos.h"
  2. /******************************************************************************
  3. *                                          *
  4. *  clear crt & reset cursor                              *
  5. *                                          *
  6. ******************************************************************************/
  7. clrcrt(a)               /* attribute */
  8. int a;
  9. {
  10.   union REGS reg;
  11.   reg.x.cx = 2000;           /* chars on crt */
  12.   reg.h.bh = 0;            /* page number */
  13.   reg.h.bl = a;            /* set attribute */
  14.   reg.h.al = ' ';                  /* blank out screen */
  15.   reg.h.ah = 9;            /* write char/attr */
  16.   int86(0x10,®,®);       /* clr the screen */
  17. }
  18.