home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / INSTALL2.TD0 / SOURCES.LIF / BANNER.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-09-27  |  3.3 KB  |  97 lines

  1. /*=============================================================================
  2.  
  3.      The INSTALL program source code, object code, sample  script files,
  4.      executable  program,  and  documentation  are  subject to copyright
  5.      protection under the laws of the United States and other countries.
  6.  
  7.      This software is licensed, not sold, and may only be  redistributed
  8.      in  executable format and only in accordance with the provisions of
  9.      the INSTALL Source Code License Agreement.
  10.  
  11.         INSTALL is Copyright(C) 1987-1990 by Knowledge Dynamics Corp
  12.        Highway Contract 4 Box 185-H, Canyon Lake, TX (USA) 78133-3508
  13.               512-964-3994 (Voice)   512-964-3958 (24-hr FAX)
  14.  
  15.                       All rights reserved worldwide.
  16.  
  17. ===============================================================================
  18.  
  19. FILENAME:
  20.     banner.c
  21.  
  22. AUTHOR:
  23.     eric jon heflin
  24.  
  25. PUBLIC FUNCTIONS:
  26.     banner() - display the Knowledge Dynamics banner
  27.  
  28. LOCAL FUNCTIONS:
  29.     none
  30.  
  31. DESCRIPTION:
  32.     This uses the current display mode to display a color or mono
  33.     banner.  The copyright may only be altered in accordance with the
  34.     terms of the written INSTALL Source Code License.  In addition to the
  35.     copyright, the banner also shows the current version and any exceptional
  36.     compilation flags (such as BETA, DEMO, and ABSORB).
  37.  
  38. REVISION HISTORY:
  39.     DATE:    AUTHOR:            DESCRIPTION OF CHANGES:
  40.     891107    allyn jordan    Documentation.
  41.     891220    ejh                Revised banner to time-out after three seconds,
  42.                             or after a key-press.
  43.     900102    ejh                Cosmetic changes.
  44.     900128  ejh             Added OS/2 compatibility.
  45.  
  46. ==============================================================================*/
  47.  
  48. #include "install.h"
  49. #include "switches.h"
  50. #include "timer.h"
  51.  
  52. void banner(void)
  53.     {                    /* banner */
  54.      /**************************************************************************
  55.  
  56.     PLEASE SEE THE "RESTRICTIONS" SECTION IN THE DOCUMENTATION FOR INFORMATION
  57.     REGARDING THE ALTERATION OF THE INSTALL BANNER.
  58.  
  59.     **************************************************************************/
  60.     extern byte force_bw;    /* defined in screen.c */
  61.     byte background = WHITE_F | BLUE_B, copr = RED_B | WHITE_F;
  62.     def_window(0, 0, 24, 79);
  63.     if (force_bw)
  64.         {
  65.         copr = WHITE_B;
  66.         background = WHITE_F;
  67.         }
  68.     cls();
  69.     set_attr(background);
  70.     cls();
  71.     box(0, 0, 24, 79, block, WHITE_F);
  72. #    if !defined(NO_BANNER)
  73.     scr_push(17, 0, 23, 79);
  74.     scr_nocur();
  75.     box(18, 3, 21, 75, one, copr);
  76.     box(17, 2, 22, 77, shadow, background);
  77.     colors(19, 4, " INSTALL V 3.05C MS-DOS Copyright(c) 1987-1990 Knowledge Dynamics Corp ", copr);
  78.     colors(20, 4, "     Canyon Lake, TX 78133-3508 (USA) All Rights Reserved Worldwide    ", copr);
  79.  
  80. #    if defined(BETA) && !defined(InstantC)
  81.     colors(23, 15," Beta Test Version            " __DATE__ "  " __TIME__ " ", background | FLASH);
  82. #    elif defined(DEMO)
  83.     colors(14, 7, " Restricted Demonstration Version - Not Licensed For Distribution", background | FLASH);
  84. #    elif defined(ABSORB)
  85.     colors(23, 25," Self Extracting (SFX) Version ", background | FLASH);
  86. #    elif defined(DEALER_DEMO)
  87.     colors(14, 21, " Dealer Demo Version - Not For Resale  ", background | FLASH);
  88. #    endif
  89.     time_delay(_3_SEC_0);
  90.     scr_pop();
  91. #    endif /* !NO_BANNER */
  92.     move(1, 1);
  93.     def_window(1, 1, 23, 78);
  94.     }                    /* banner */
  95.  
  96. /* end-of-file */
  97.