aboutsummaryrefslogtreecommitdiffstats
path: root/src/options.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/options.c9
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;