From 88af2c3ace0fa42dbb816cc9fe8c4b54ce89233a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 3 Oct 2008 14:25:00 +0200 Subject: 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. --- src/screen.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/screen.c') diff --git a/src/screen.c b/src/screen.c index 231d84ada..2fd4b571f 100644 --- a/src/screen.c +++ b/src/screen.c @@ -503,6 +503,7 @@ screen_init(mpdclient_t *c) leaveok(screen.status_window.w, FALSE); keypad(screen.status_window.w, TRUE); +#ifdef ENABLE_COLORS if (options.enable_colors) { /* set background attributes */ wbkgd(stdscr, COLOR_PAIR(COLOR_LIST)); @@ -512,6 +513,7 @@ screen_init(mpdclient_t *c) wbkgd(screen.status_window.w, COLOR_PAIR(COLOR_STATUS)); colors_use(screen.progress_window.w, COLOR_PROGRESSBAR); } +#endif refresh(); -- cgit v1.2.3