home *** CD-ROM | disk | FTP | other *** search
- /* CLS() -- clear screen
-
- Copyright (c) 1983 by JMI Software Consultants, Inc.
- */
-
- #include "bio.h"
- #include "host.h"
-
- /* This function requires DOS 2.0 and DEVICE=ANSI.SYS
- */
- VOID CLS()
- {
- IMPORT BF **bfiles;
- INTERN TEXT s[] = {'\033', '[', '2', 'J', '$'};
-
- bdos(9, s);
- bfiles[1]->bf_col = 1;
- }
-
- /* This function requires BIOS interrupt 0x10 VIDEO IO
- */
- /*
- VOID CLS()
- {
- IMPORT BF **bfiles;
- INTERN REGVAL scroll = {0x0600, 0x0700, 0x0000, 0x184F, 0x0000};
- INTERN REGVAL home = {0x0200, 0x0000, 0x0000, 0x0000, 0x0000};
- REGVAL r;
-
- int86(0x10, &scroll, &r);
- int86(0x10, &home, &r);
- bfiles[1]->bf_col = 1;
- }
- */