[vlc-devel] commit: ncurses: use --color option ( Rafaël Carré )

git version control git at videolan.org
Mon May 5 21:24:40 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon May  5 21:26:18 2008 +0200| [d1aff398452e86385cb1205cf8277d9de3782f12]

ncurses: use --color option

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d1aff398452e86385cb1205cf8277d9de3782f12
---

 modules/gui/ncurses.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index a3dbc23..ce9f031 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -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




More information about the vlc-devel mailing list