home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / program / c / bts310b5 / b_banner.c < prev    next >
C/C++ Source or Header  |  1991-09-17  |  6KB  |  173 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 "bink.h"
  51. #include "msgs.h"
  52. #include "com.h"
  53. #include "vfossil.h"
  54. #include "sbuf.h"
  55. #include "externs.h"
  56. #include "prototyp.h"
  57.  
  58. #ifdef MULTITASK
  59.  
  60. static void mtask_find ()
  61. {
  62.    unsigned char buff[80];
  63.    int fs1, fs2;
  64.  
  65.    fs1 = fullscreen && (un_attended || doing_poll);
  66.    fs2 = (!fullscreen) || !(un_attended || doing_poll);
  67.  
  68.    if (fs2)
  69.       {
  70.       scr_printf (msgtxt[M_MULTI_TASKER]);
  71.       }
  72.  
  73. #if defined(ATARIST)
  74.         /* Multi-tasking on the ST???? What will they think of next */
  75.         /* No seriously, I suppose I could provide support for the */
  76.         /* Beckemeyer shell and anything else */
  77.        (void) strcpy ((char *) buff, "None");
  78. #elif !defined(OS_2)
  79.    if ((have_dv = dv_get_version ()) != 0)
  80.       {
  81.       (void) sprintf ((char *) buff, "DESQview");
  82.       }
  83.     else if ((have_mos = mos_active ()) != 0)
  84.       {
  85.          (void) sprintf ((char *) buff, "PC-MOS");
  86.       }
  87.    else if ((have_ddos = ddos_active ()) != 0)
  88.       {
  89.       (void) strcpy ((char *) buff, "DoubleDOS");
  90.       }
  91.    else if (have_ml)
  92.       {
  93.       if ((have_ml = ml_active ()) != 0)
  94.          {
  95.          (void) strcpy ((char *) buff, "MultiLink");
  96.          }
  97.       else
  98.          {
  99.          (void) strcpy ((char *) buff, "None");
  100.          }
  101.       }
  102.    else if (have_tv)
  103.       {
  104.       if ((have_tv = tv_get_version ()) != 0)
  105.          {
  106.          (void) strcpy ((char *) buff, "T-View");
  107.          }
  108.       else
  109.          {
  110.          (void) strcpy ((char *) buff, "None");
  111.          }
  112.       }
  113.    else
  114.       {
  115.       (void) strcpy ((char *) buff, "None");
  116.       }
  117.  
  118. #else /* ifndef OS_2 */
  119.    if (_osmode == DOS_MODE)
  120.        (void) strcpy ((char *) buff, "None");
  121.    else
  122.        (void) strcpy ((char *) buff, "OS/2");
  123. #endif
  124.  
  125.    if (!fs1)
  126.        strcat ((char *) buff, "\r\n");
  127.  
  128.    if (fs2)
  129.       {
  130.       scr_printf ((char *) buff);
  131.       }
  132.    else
  133.       {
  134.       sb_move (settingswin, SET_TASK_ROW, 2);
  135.       sb_puts (settingswin, "                   ");
  136.       sb_move (settingswin, SET_TASK_ROW, 2);
  137.       sb_puts (settingswin, (unsigned char *) "M'Task: ");
  138.       sb_puts (settingswin, buff);
  139.       }
  140. }
  141.  
  142. #endif
  143.  
  144. void opening_banner ()
  145. {
  146.    char bd[10];
  147.  
  148.    if (!fullscreen || !un_attended)
  149.       {
  150.       screen_clear ();
  151.       scr_printf (ANNOUNCE);
  152.       scr_printf ("\r\nA Freely Available<tm> Dumb Terminal and FidoNet Mail Package\r\n");
  153.       scr_printf (msgtxt[M_SETTING]);
  154.       scr_printf (" COM");
  155.       WRITE_ANSI (port_ptr + '1');
  156.       WRITE_ANSI (':');
  157.       scr_printf (msgtxt[M_INITIAL_SPEED]);
  158.       (void) sprintf (bd, "%u", max_baud.rate_value);
  159.       scr_printf (bd);
  160.       scr_printf (msgtxt[M_INTRO_END]);
  161.       }
  162.  
  163. #ifndef ATARIST
  164.    fossil_ver ();
  165. #endif
  166.  
  167. #ifdef MULTITASK
  168.    mtask_find ();
  169. #endif
  170. }
  171.  
  172.  
  173.