messages.c 1.5 KB

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