home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / dskutl / dsktst.arc / CLRCRT.C < prev    next >
Text File  |  1985-08-06  |  640b  |  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.