home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / pc_hw / co80 / scvbell.c < prev   
Encoding:
C/C++ Source or Header  |  1995-09-06  |  408 b   |  22 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #include <dos.h>
  3. #include "sc.h"
  4.  
  5. void
  6. ScreenVisualBell(void)
  7. {
  8.   int j = ScreenRows() * ScreenCols();
  9.   int _nblinks = 2;
  10.   _farsetsel(dossel);
  11.   while (_nblinks--)
  12.   {
  13.     unsigned sp = co80;
  14.     int i = j;
  15.     do {
  16.       _farnspokew(sp, _farnspeekw(sp) ^ 0x7f00);
  17.       sp += 2;
  18.     } while (--i);
  19.     delay(100);
  20.   }
  21. }
  22.