home *** CD-ROM | disk | FTP | other *** search
- /*=============================================================================
-
- The INSTALL program source code, object code, sample script files,
- executable program, and documentation are subject to copyright
- protection under the laws of the United States and other countries.
-
- This software is licensed, not sold, and may only be redistributed
- in executable format and only in accordance with the provisions of
- the INSTALL Source Code License Agreement.
-
- INSTALL is Copyright(C) 1987-1990 by Knowledge Dynamics Corp
- Highway Contract 4 Box 185-H, Canyon Lake, TX (USA) 78133-3508
- 512-964-3994 (Voice) 512-964-3958 (24-hr FAX)
-
- All rights reserved worldwide.
-
- ===============================================================================
-
- FILENAME:
- banner.c
-
- AUTHOR:
- eric jon heflin
-
- PUBLIC FUNCTIONS:
- banner() - display the Knowledge Dynamics banner
-
- LOCAL FUNCTIONS:
- none
-
- DESCRIPTION:
- This uses the current display mode to display a color or mono
- banner. The copyright may only be altered in accordance with the
- terms of the written INSTALL Source Code License. In addition to the
- copyright, the banner also shows the current version and any exceptional
- compilation flags (such as BETA, DEMO, and ABSORB).
-
- REVISION HISTORY:
- DATE: AUTHOR: DESCRIPTION OF CHANGES:
- 891107 allyn jordan Documentation.
- 891220 ejh Revised banner to time-out after three seconds,
- or after a key-press.
- 900102 ejh Cosmetic changes.
- 900128 ejh Added OS/2 compatibility.
-
- ==============================================================================*/
-
- #include "install.h"
- #include "switches.h"
- #include "timer.h"
-
- void banner(void)
- { /* banner */
- /**************************************************************************
-
- PLEASE SEE THE "RESTRICTIONS" SECTION IN THE DOCUMENTATION FOR INFORMATION
- REGARDING THE ALTERATION OF THE INSTALL BANNER.
-
- **************************************************************************/
- extern byte force_bw; /* defined in screen.c */
- byte background = WHITE_F | BLUE_B, copr = RED_B | WHITE_F;
- def_window(0, 0, 24, 79);
- if (force_bw)
- {
- copr = WHITE_B;
- background = WHITE_F;
- }
- cls();
- set_attr(background);
- cls();
- box(0, 0, 24, 79, block, WHITE_F);
- # if !defined(NO_BANNER)
- scr_push(17, 0, 23, 79);
- scr_nocur();
- box(18, 3, 21, 75, one, copr);
- box(17, 2, 22, 77, shadow, background);
- colors(19, 4, " INSTALL V 3.05C MS-DOS Copyright(c) 1987-1990 Knowledge Dynamics Corp ", copr);
- colors(20, 4, " Canyon Lake, TX 78133-3508 (USA) All Rights Reserved Worldwide ", copr);
-
- # if defined(BETA) && !defined(InstantC)
- colors(23, 15," Beta Test Version " __DATE__ " " __TIME__ " ", background | FLASH);
- # elif defined(DEMO)
- colors(14, 7, " Restricted Demonstration Version - Not Licensed For Distribution", background | FLASH);
- # elif defined(ABSORB)
- colors(23, 25," Self Extracting (SFX) Version ", background | FLASH);
- # elif defined(DEALER_DEMO)
- colors(14, 21, " Dealer Demo Version - Not For Resale ", background | FLASH);
- # endif
- time_delay(_3_SEC_0);
- scr_pop();
- # endif /* !NO_BANNER */
- move(1, 1);
- def_window(1, 1, 23, 78);
- } /* banner */
-
- /* end-of-file */