home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 008 / WCTUTOR!.ZIP / COLORSET.TXT < prev    next >
Text File  |  1986-08-01  |  3KB  |  73 lines

  1.   COLORSET (Automatic Color Setter)      Charlie Butrico
  2.           ______________________________________________________
  3.  
  4.           Purpose:  Memory-resident utility that sets the
  5.                     foreground, background, and border colors on
  6.                     color systems, and prevents attempts by
  7.                     applications software to reset these colors
  8.                     to gray-on-black.
  9.  
  10.           Format:   [d:][path]COLORSET FG/BG BORD
  11.  
  12.           Remarks:  While dozens of small programs can set your
  13.                     screen colors, many popular programs (such as
  14.                     dBASE II) will reset them to a drab gray-on-
  15.                     black.  The first time you execute COLORSET,
  16.                     it will set your colors, remain in memory,
  17.                     look for such resetting instructions, and
  18.                     will instead set the colors to the ones you
  19.                     specified. Later executions of COLORSET will
  20.                     update the attributes only.
  21.  
  22.                     FG/BG is the foreground and background color
  23.                     (a decimal number from 0 to 255).  To
  24.                     calculate FG/BG, multiply the number of the
  25.                     background color by 16 and add the number of
  26.                     the foreground color to it.
  27.  
  28.           Example:  The FG/BG number for blue text on a white
  29.                     background is 113, i.e., ( (7*16) + 1 ).
  30.  
  31.                     The number for red text on a cyan background
  32.                     is 52, i.e., ( (3*16) + 4 ).
  33.  
  34.                     BORD is the border number (a decimal number
  35.                     from 0 to 15).
  36.  
  37.                     Keying just one number or using COLORSET on
  38.                     an EGA will change only the foreground and
  39.                     background colors.
  40.  
  41.                     After running COLORSET, the DOS CLS command
  42.                     will clear the screen to the colors you chose
  43.                     rather than to the default DOS gray-on-black.
  44.  
  45.                     Notes:
  46.  
  47.                     1.   DOS does not permit you to use bright
  48.                          background colors; trying a FG/BG number
  49.                          higher than 127 will produce text that
  50.                          blinks.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.                                  Page -6-
  61.  
  62.                     2.   ======== COLOR CHART =========
  63.  
  64.                          0-Black        8-Gray
  65.                          1-Blue         9-Bright Blue
  66.                          2-Green       10-Bright Green
  67.                          3-Cyan        11-Bright Cyan
  68.                          4-Red         12-Bright Red
  69.                          5-Magenta     13-Bright Magenta
  70.                          6-Brown       14-Yellow
  71.                          7-White       15-Bright White
  72.  
  73.