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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
/****************************************************************************
* Functions for displaying information about JWM.
* Copyright (C) 2004 Joe Wingbermuehle
****************************************************************************/
#include "jwm.h"
#include "help.h"
/****************************************************************************
****************************************************************************/
void DisplayAbout() {
printf("JWM v%s by Joe Wingbermuehle\n", PACKAGE_VERSION);
DisplayCompileOptions();
}
/****************************************************************************
****************************************************************************/
void DisplayCompileOptions() {
printf("compiled options: ");
#ifndef DISABLE_CONFIRM
printf("confirm ");
#endif
#ifdef DEBUG
printf("debug ");
#endif
#ifdef USE_ICONS
printf("icons ");
#endif
#ifdef SHOW_LOAD
printf("load ");
#endif
#ifdef USE_PNG
printf("png ");
#endif
#ifdef USE_SHAPE
printf("shape ");
#endif
#ifdef USE_XFT
printf("xft ");
#endif
#ifdef USE_XINERAMA
printf("xinerama ");
#endif
#ifdef USE_XPM
printf("xpm ");
#endif
#ifdef USE_XRENDER
printf("xrender ");
#endif
printf("\nsystem configuration: %s\n", SYSTEM_CONFIG);
}
/****************************************************************************
****************************************************************************/
void DisplayHelp() {
DisplayUsage();
printf(" -display X Set the X display to use\n");
printf(" -exit Exit JWM (send _JWM_EXIT to the root)\n");
printf(" -h Display this help message\n");
printf(" -p Parse the configuration file and exit\n");
printf(" -restart Restart JWM (send _JWM_RESTART to the root)\n");
printf(" -v Display version information\n");
}
/****************************************************************************
****************************************************************************/
void DisplayUsage() {
DisplayAbout();
printf("usage: jwm [ options ]\n");
}
|