[vlc-devel] [patch] per default disable, colored console messages on windows

Mark Moriarty mfmbusiness at earthlink.net
Fri Feb 15 23:59:21 CET 2008


I wrote an ifdef patch yesterday, tested it this am, just committed it.
The patch I committed is for Windows, as the help output is written to a txt
file. 

-----Original Message-----
From: vlc-devel-bounces at videolan.org [mailto:vlc-devel-bounces at videolan.org]
On Behalf Of Pierre d'Herbemont
Sent: Friday, February 15, 2008 5:55 PM
To: Mailing list for VLC media player developers
Subject: Re: [vlc-devel] [patch] per default disable,colored console
messages on windows

Hi Andre,

On Feb 15, 2008, at 11:44 PM, Andre Weber wrote:
> anybody who is feels disturbed by the output of --help or --longhelp 
> on windows, where color codes are inserted into the text, which may be 
> useful for linux consoles, should try this patch, which disables the 
> color output on windows per default, instead leaving it enabled. (to 
> remove the support completly with idefs it would need a lot more 
> ifdefs in different files, so its just a quick
> solution.)

There is an alternative solution which is the use of ncurses's
has_colors() function. Hence we could automatically detect if your current
terminal supports text color. Because I am sure there are some colored
terminal even on windows.

Pierre.
_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
http://mailman.videolan.org/listinfo/vlc-devel




More information about the vlc-devel mailing list