File: splashscr.c

package info (click to toggle)
gramofile 1.6-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 840 kB
  • ctags: 538
  • sloc: ansic: 10,238; makefile: 55
file content (61 lines) | stat: -rw-r--r-- 1,726 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* Splash Screen

 * Copyright (C) 1998 J.A. Bezemer
 *
 * Licensed under the terms of the GNU General Public License.
 * ABSOLUTELY NO WARRANTY.
 * See the file `COPYING' in this directory.
 */

#include <unistd.h>
#ifndef OLD_CURSES
#include <ncurses.h>
#else
#include <curses.h>
#endif


void
splashscreen (void)
{
  char splashtext[] = "\
\n\
  #######                                            ####### ##   ###\n\
 ##                                                 ##             ##\n\
 ##        ## ####   #####   ## ### ###    #####    ##      ###    ##    #####\n\
 ##  ####   ##   ##      ##   ##  ##  ##  ##   ##   #####    ##    ##   ##   ##\n\
 ##     ##  ##       ######   ##  ##  ##  ##   ##   ##       ##    ##   ######\n\
 ##     ##  ##      ##   ##   ##  ##  ##  ##   ##   ##       ##    ##   ##\n\
  #######   ##       ######   ##  ##  ##   #####    ##      ####  ####   #####\n\
\n\
                                                                   Version 1.6\n\
________________________________________________________________________________     \n\
        Recording  -  Playback  -  Track Splitting  -  Signal Processing\n\
\n\
\n\
\n\
   Copyright (C) 1998 J.A. Bezemer\n\
\n\
   This program is free software; you are encouraged to redistribute it under\n\
   the terms of the GNU General Public License.\n\
\n\
   This program comes with ABSOLUTELY NO WARRANTY. See the GNU General Public\n\
   License (e.g. in the file named `COPYING') for more details.\
";

/* int i;
   for (i=0; i<strlen(splashtext); i++)
   addch(splashtext[i]=='#' ? ' ' | A_REVERSE : splashtext[i]);
 */

  clear ();
  refresh ();

  usleep (500000);

  addstr (splashtext);
  move (0, 79);
  refresh ();

  sleep (3);
}