aboutsummaryrefslogtreecommitdiffstats
path: root/src/ncu.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-03 14:25:00 +0200
committerMax Kellermann <max@duempel.org>2008-10-03 14:25:00 +0200
commit88af2c3ace0fa42dbb816cc9fe8c4b54ce89233a (patch)
treef637ddd9f06c52890ffffe4910d410d4dd36d520 /src/ncu.c
parent3e70743f5061573a2d9fff2fe4b232f38653d12b (diff)
downloadmpd-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/ncu.c')
-rw-r--r--src/ncu.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ncu.c b/src/ncu.c
index ed3c2273b..936e78aa5 100644
--- a/src/ncu.c
+++ b/src/ncu.c
@@ -17,7 +17,16 @@
*/
#include "ncu.h"
+
+#ifdef ENABLE_COLORS
#include "colors.h"
+#endif
+
+#ifdef HAVE_GETMOUSE
+#include "options.h"
+#endif
+
+#include <ncurses.h>
void
ncu_init(void)
@@ -26,7 +35,9 @@ ncu_init(void)
initscr();
/* initialize color support */
+#ifdef ENABLE_COLORS
colors_start();
+#endif
/* tell curses not to do NL->CR/NL on output */
nonl();