home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │jzclrscr.c │
- │Clear the display screen with the global screen window and colors. │
- │Usage: jzclrscr(); │
- │ │
- │Notes: use window(),color() etc to set these attributes. │
- │ │
- │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
- └────────────────────────────────────────────────────────────────────────────┘
- */
- #include <jaz.h>
- extern int _row1,_col1,_row2,_col2,_attr;
- jzclrscr()
- {
- TREG wreg;
-
- wreg.h.ah = 6;
- wreg.h.al = 0;
- wreg.h.ch = _row1;
- wreg.h.cl = _col1;
- wreg.h.dh = _row2;
- wreg.h.dl = _col2;
- wreg.h.bh = _attr;
- #if DEBUG
- printf("%x %x %x %x %x",wreg.h.ah,wreg.h.al,wreg.x.cx,wreg.x.dx,
- wreg.h.bh);
- getch();
- #endif
- intr(0x10,&wreg);
- }