home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / vg-2.03 / usage.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  1.3 KB  |  55 lines

  1. /*
  2.  * Copyright (C) 1990-1992 Michael Davidson.
  3.  * All rights reserved.
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software
  6.  * and its documentation for any purpose and without fee is hereby
  7.  * granted, provided that the above copyright notice appear in all
  8.  * copies and that both that copyright notice and this permission
  9.  * notice appear in supporting documentation.
  10.  *
  11.  * This software is provided "as is" without express or implied warranty.
  12.  */
  13.  
  14. #include    <stdio.h>
  15. #include    <stdlib.h>
  16.  
  17.  
  18. char *usage[] = {
  19. "",
  20. "show files:",
  21. "",
  22. "    vg [-d <display>] [-132] [-n] [-w <delay>] [-x <depth>] files ...",
  23. "",
  24. "    -d <display>    specify the type of display (ATI/S3/TRIDENT/TSENG/VESA)",
  25. "            default is to auto-detect the display type",
  26. "",
  27. "    -132        use 132 column mode for menus if one is available",
  28. "",
  29. "    -n            nomenu - do not display file selection menus",
  30. "",
  31. "    -w <delay>        slide-show mode - wait <delay> seconds between images",
  32. "",
  33. "    -x <depth>        specify maximum color depth to use (8/15/16/24)",
  34. "            default is maximum depth supported by the hardware",
  35. "",
  36. "test mode:",
  37. "",
  38. "    vg [-d <display>] [-t] [-v]",
  39. "",
  40. "    -t            test mode - display a grid and color bars in each",
  41. "            supported mode",
  42. "",
  43. "    -v            display a list of supported modes",
  44. NULL
  45. };
  46.  
  47. void
  48. showUsage()
  49. {
  50.     char    **p;
  51.  
  52.     for (p = usage; *p != NULL; p++)
  53.     puts(*p);
  54. }
  55.