]> git.sesse.net Git - vlc/commitdiff
ncurses: use --color option
authorRafaël Carré <funman@videolan.org>
Mon, 5 May 2008 19:26:18 +0000 (21:26 +0200)
committerRafaël Carré <funman@videolan.org>
Mon, 5 May 2008 19:26:18 +0000 (21:26 +0200)
modules/gui/ncurses.c

index a3dbc23ab814d7f7dcd7a2ed3a4468e205a0a9df..ce9f031536cdbe1f73a88bb0cc38b5eba92e557a 100644 (file)
@@ -255,7 +255,7 @@ static int Open( vlc_object_t *p_this )
     p_sys->i_box_plidx = 0;
     p_sys->i_box_bidx = 0;
     p_sys->p_sub = msg_Subscribe( p_intf, MSG_QUEUE_NORMAL );
-    p_sys->b_color = isatty( 0 );
+    p_sys->b_color = var_CreateGetBool( p_intf, "color" );
     p_sys->b_color_started = false;
 
 #ifndef HAVE_NCURSESW