diff options
author | Max Kellermann <max@duempel.org> | 2008-10-03 14:25:00 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-03 14:25:00 +0200 |
commit | 88af2c3ace0fa42dbb816cc9fe8c4b54ce89233a (patch) | |
tree | f637ddd9f06c52890ffffe4910d410d4dd36d520 /src/options.c | |
parent | 3e70743f5061573a2d9fff2fe4b232f38653d12b (diff) | |
download | mpd-88af2c3ace0fa42dbb816cc9fe8c4b54ce89233a.tar.gz mpd-88af2c3ace0fa42dbb816cc9fe8c4b54ce89233a.tar.xz mpd-88af2c3ace0fa42dbb816cc9fe8c4b54ce89233a.zip |
colors: make color support optional at compile time
Default is colors disabled. Those who love colorful terminals have
the option to enable it with --enable-colors.
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c index 75f074a63..1b592a567 100644 --- a/src/options.c +++ b/src/options.c @@ -151,6 +151,11 @@ handle_option(int c, const char *arg) #ifdef ENABLE_NLS " nls" #endif +#ifdef ENABLE_COLORS + " colors" +#else + " no-colors" +#endif #ifdef HAVE_GETMOUSE " getmouse" #endif @@ -166,10 +171,14 @@ handle_option(int c, const char *arg) "\n"); exit(EXIT_SUCCESS); case 'c': /* --colors */ +#ifdef ENABLE_COLORS options.enable_colors = true; +#endif break; case 'C': /* --no-colors */ +#ifdef ENABLE_COLORS options.enable_colors = false; +#endif break; case 'm': /* --mouse */ options.enable_mouse = true; |