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