home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume16 / pcomm2 / part04 / info.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-09-14  |  1.5 KB  |  52 lines

  1. /*
  2.  * Display the initial welcome screen (to include all of the proper
  3.  * acknowledgements).  Press any key to continue.
  4.  */
  5.  
  6. #define VERSION "1.1"
  7. #define DATE    "21 Aug 88"
  8.  
  9. #include <stdio.h>
  10. #include <curses.h>
  11.  
  12. void
  13. info(delay)
  14. int delay;
  15. {
  16.     extern int fd;
  17.     WINDOW *w_win, *newwin();
  18.     char buf[80];
  19.                     /* display the welcome screen */
  20.     w_win = newwin(23, 80, 0, 0);
  21.     mvwaddstr(w_win, 3, 18, "PPPPPP    CCCC    OOOO    MM   MM   MM   MM");
  22.     mvwaddstr(w_win, 4, 18, "P    P   C       O    O   M M M M   M M M M");
  23.     mvwaddstr(w_win, 5, 18, "PPPPPP   C       O    O   M  M  M   M  M  M");
  24.     mvwaddstr(w_win, 6, 18, "P        C       O    O   M     M   M     M");
  25.     mvwaddstr(w_win, 7, 18, "P         CCCC    OOOO    M     M   M     M");
  26.  
  27.     sprintf(buf, ">>> Pcomm Version %s <<<", VERSION);
  28.     mvwaddstr(w_win, 10, (80-strlen(buf))/2, buf);
  29.     sprintf(buf, "Release date: %s", DATE);
  30.     mvwaddstr(w_win, 11, (80-strlen(buf))/2, buf);
  31.  
  32.     mvwaddstr(w_win, 13, 8, "Pcomm is a public domain telecommunication program for Unix that");
  33.     mvwaddstr(w_win, 14, 8, "is designed to operate similar to the MSDOS program, ProComm.");
  34.     mvwaddstr(w_win, 15, 8, "ProComm (TM) is copyrighted by Datastorm Technologies, Inc.");
  35.     mvwaddstr(w_win, 19, 45, "Emmet P. Gray");
  36.     mvwaddstr(w_win, 20, 45, "...!uunet!uiucuxc!fthood!egray");
  37.     wmove(w_win, 22, 79);
  38.     wrefresh(w_win);
  39.                     /* Delay so you can read the herald */
  40.     if (delay)
  41.         wait_key(w_win, 5);
  42.     else
  43.         wgetch(w_win);
  44.  
  45.     if (fd == -1) {
  46.         werase(w_win);
  47.         wrefresh(w_win);
  48.     }
  49.     delwin(w_win);
  50.     return;
  51. }
  52.