home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / BTMTSRC3.ZIP / B_BANNER.C < prev    next >
C/C++ Source or Header  |  1991-08-07  |  6KB  |  160 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software, Co.                       */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          Freely Available<tm> Software.                 */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*  (C) Copyright 1987-90, Bit Bucket Software Co., a Delaware Corporation. */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*          This module was originally written by Vince Perriello           */
  14. /*                                                                          */
  15. /*                                                                          */
  16. /*                       BinkleyTerm Opening Banner                         */
  17. /*                                                                          */
  18. /*                                                                          */
  19. /*    For complete  details  of the licensing restrictions, please refer    */
  20. /*    to the License  agreement,  which  is published in its entirety in    */
  21. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.240.    */
  22. /*                                                                          */
  23. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  24. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  25. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  26. /*    NOT HAVE THESE FILES,  YOU  SHOULD  IMMEDIATELY CONTACT BIT BUCKET    */
  27. /*    SOFTWARE CO.  AT ONE OF THE  ADDRESSES  LISTED BELOW.  IN NO EVENT    */
  28. /*    SHOULD YOU  PROCEED TO USE THIS FILE  WITHOUT HAVING  ACCEPTED THE    */
  29. /*    TERMS  OF  THE  BINKLEYTERM  LICENSING  AGREEMENT,  OR  SUCH OTHER    */
  30. /*    AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO.      */
  31. /*                                                                          */
  32. /*                                                                          */
  33. /* You can contact Bit Bucket Software Co. at any one of the following      */
  34. /* addresses:                                                               */
  35. /*                                                                          */
  36. /* Bit Bucket Software Co.        FidoNet  1:104/501, 1:132/491, 1:141/491  */
  37. /* P.O. Box 460398                AlterNet 7:491/0                          */
  38. /* Aurora, CO 80046               BBS-Net  86:2030/1                        */
  39. /*                                Internet f491.n132.z1.fidonet.org         */
  40. /*                                                                          */
  41. /* Please feel free to contact us at any time to share your comments about  */
  42. /* our software and/or licensing policies.                                  */
  43. /*                                                                          */
  44. /*--------------------------------------------------------------------------*/
  45.  
  46. #include <stdio.h>
  47. #include <string.h>
  48. #include <stdlib.h>
  49.  
  50. #include "com.h"
  51. #include "xfer.h"
  52. #include "zmodem.h"
  53. #include "keybd.h"
  54. #include "sbuf.h"
  55. #include "sched.h"
  56. #include "externs.h"
  57. #include "prototyp.h"
  58.  
  59. static void mtask_find(void);
  60.  
  61. void opening_banner()
  62.     {
  63.     char bd[10];
  64.  
  65.     if (!fullscreen || !un_attended)
  66.         {
  67.         screen_clear();
  68.         scr_printf(ANNOUNCE);
  69.         scr_printf("\r\nA Freely Available<tm> Dumb Terminal and FidoNet Mail Package\r\n");
  70.         scr_printf(msgtxt[M_SETTING]);
  71.         scr_printf(" COM");
  72.         WRITE_ANSI(port_ptr + '1');
  73.         WRITE_ANSI(':');
  74.         scr_printf(msgtxt[M_INITIAL_SPEED]);
  75.         sprintf(bd, "%u", max_baud.rate_value);
  76.         scr_printf(bd);
  77.         scr_printf(msgtxt[M_INTRO_END]);
  78.         }
  79.  
  80.     fossil_ver();
  81.     mtask_find();
  82.     }
  83.  
  84. static void mtask_find()
  85.     {
  86.     unsigned char buff[80];
  87.     int fs1, fs2;
  88.  
  89.     fs1 = fullscreen && (un_attended || doing_poll);
  90.     fs2 = (!fullscreen) || !(un_attended || doing_poll);
  91.  
  92.     if (fs2)
  93.         {
  94.         scr_printf(msgtxt[M_MULTI_TASKER]);
  95.         }
  96.  
  97. #ifndef OS_2
  98.     if ((have_dv = dv_get_version()) != 0)
  99.         {
  100.         sprintf((char *) buff, "DESQview");
  101.         }
  102.     else if ((have_mos = mos_active()) != 0)
  103.         {
  104.         sprintf((char *) buff, "PC-MOS");
  105.         }
  106.     else if ((have_ddos = ddos_active()) != 0)
  107.         {
  108.         strcpy((char *) buff, "DoubleDOS");
  109.         }
  110.     else if (have_ml)
  111.         {
  112.         if ((have_ml = ml_active()) != 0)
  113.             {
  114.             strcpy((char *) buff, "MultiLink");
  115.             }
  116.         else
  117.             {
  118.             strcpy((char *) buff, "None");
  119.             }
  120.         }
  121.     else if (have_tv)
  122.         {
  123.         if ((have_tv = tv_get_version()) != 0)
  124.             {
  125.             strcpy((char *) buff, "T-View");
  126.             }
  127.         else
  128.             {
  129.             strcpy((char *) buff, "None");
  130.             }
  131.         }
  132.     else
  133.         {
  134.         strcpy((char *) buff, "None");
  135.         }
  136.  
  137. #else /* ifndef OS_2 */
  138.     if (_osmode == DOS_MODE)
  139.         strcpy((char *) buff, "None");
  140.     else
  141.         strcpy((char *) buff, "OS/2");
  142. #endif
  143.  
  144.     if (!fs1)
  145.         strcat((char *) buff, "\r\n");
  146.  
  147.     if (fs2)
  148.         {
  149.         scr_printf((char *) buff);
  150.         }
  151.     else
  152.         {
  153.         sb_move(settingswin, SET_TASK_ROW, 2);
  154.         sb_puts(settingswin, "                   ");
  155.         sb_move(settingswin, SET_TASK_ROW, 2);
  156.         sb_puts(settingswin, (unsigned char *) "M'Task: ");
  157.         sb_puts(settingswin, buff);
  158.         }
  159.     }
  160.