home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / 2MONITOR.ZIP / MCLS.C < prev    next >
C/C++ Source or Header  |  1989-09-10  |  816b  |  34 lines

  1. /* MCLS - - Clears Mono Screen                                            */
  2. /* Written 9/89 by W. J. Morton                                           */
  3.  
  4. #define INCL_BASE
  5.  
  6. #include <string.h>
  7. #include <stdio.h>
  8. #include <stdlib.h>
  9. #include <os2.h>
  10. #include <ctype.h>
  11.  
  12. VIOPHYSBUF     viopbBuf;                  /* Structure for physical buf   */
  13. PCH            pchScreen;
  14.  
  15. void main(int argc, char **argv)
  16.  
  17. {
  18.    register int   i;
  19.  
  20.    viopbBuf.pBuf = (PCH) 0xB0000L;
  21.    viopbBuf.cb = 4000;
  22.    VioGetPhysBuf(&viopbBuf, 0);
  23.    pchScreen = MAKEP(viopbBuf.asel[0],0);
  24.    for(i = 0; i < 4000; i += 2)          /* Set Mono Buff to spaces      */
  25.       {
  26.       *(pchScreen + i) = ' ';
  27.       *(pchScreen + i + 1) = 7;
  28.       }
  29.    return;                                                 
  30. }
  31.  
  32.  
  33.  
  34.