home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource4 / 272_01 / clrfield.doc < prev    next >
Encoding:
Text File  |  1987-07-16  |  1.4 KB  |  42 lines

  1.  
  2.  
  3.         NAME
  4.                 clrfield -- clear a screen field through BIOS
  5.                 disp_clrfield -- same, direct video access
  6.  
  7.         SYNOPSIS
  8.                 void clrfield(row, col, size, page);
  9.                 void disp_clrfield(row, col, size);
  10.                 int row, col;    starting point
  11.                 int size;        number of columns to clear ( <= 80)
  12.                 int page;        video page number
  13.                                  (for non-CGA, specify 0)
  14.  
  15.  
  16.         DESCRIPTION
  17.         These functions handle the problem of clearing a section of
  18.         a line on the screen without clearing to the end of the
  19.         line.
  20.         Both functions operate the same, except that clrfield()
  21.         writes to stdout, and disp_clrfield() uses the Datalight
  22.         Direct video access.  In the latter case, the current screen
  23.         attribute is used.  Page number is not used in the direct mode.
  24.         The field is cleared to ASCII spaces.
  25.         If the size parameter is larger than 80, it is forced to 80.
  26.  
  27.  
  28.  
  29.  
  30.  
  31.         EXAMPLE
  32.  
  33.              clrfield(10, 20, 15, 0);  /* clear 15 columns on page 0
  34.                                           starting at row 10, column 20 */
  35.              disp_clrfield(10, 20, 15); /* same, direct video access */
  36.  
  37.  
  38.  
  39.  
  40.  
  41.         This function is found in SMDLx.LIB for the Datalight Compiler
  42.