Debian Codegraph @

contrib/gcc/fbmngplay/messages.c

raw
1 /*
2 fbmngplay - fb console MNG player.
3 (c) 2001 by Stefan Reinauer, <stepan :at: suse.de>
4
5 This program is based on mngplay, part of libmng, written and (C) by
6 Ralph Giles <giles :at: ashlu.bc.ca>
7
8 This program my be redistributed under the terms of the
9 GNU General Public Licence, version 2, or at your preference,
10 any later version.
11 */
12
13 #include <stdio.h>
14
15 #include "fbmngplay.h"
16 #include "messages.h"
17
18 void usage(char *name)
19 {
20 fprintf(stderr, "\nusage: %s [ -x <val> ] [ -y <val> ] [ -a <val> ] [-b] [-v]"
21 " [-s] [file.mng [file.mng [...]]]\n", name);
22 fprintf(stderr, "\n -x: x coordinate\n");
23 fprintf(stderr, " -y: y coordinate\n");
24 fprintf(stderr, " -a, --alpha: default alpha channel 1..100\n");
25 fprintf(stderr, " -v, --verbose: verbose mode\n");
26 fprintf(stderr, " -b, --buffered: buffered mode\n");
27 fprintf(stderr, " -s, --signal: wait for SIGUSR1 between animations\n");
28 fprintf(stderr, " -p, --position: dynamically select position\n");
29 fprintf(stderr, " -V, --version: show version and exit\n");
30 fprintf(stderr, " -?, -h, --help: print this help.\n\n");
31 fprintf(stderr, " -S --start-console: only output animation on console it was started on.\n");
32 }
33
34 void version(void)
35 {
36 fprintf(stderr, "fbmngplay v%s, Copyright (C) 2001 Stefan Reinauer\n",FBMNGPLAY_VERSION);
37 fprintf(stderr, "fbmngplay comes with ABSOLUTELY NO WARRANTY;\n");
38 fprintf(stderr,"This is free software, and you are welcome to redistribute it\n");
39 fprintf(stderr,"under certain conditions; Check the GPL for details.\n");
40 }