[vlc-devel] [patch] per default disable, colored console messages on windows
Pierre d'Herbemont
pdherbemont at free.fr
Fri Feb 15 23:55:16 CET 2008
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.
More information about the vlc-devel
mailing list