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

Andre Weber WeberAndre at gmx.de
Fri Feb 15 23:59:46 CET 2008


Hi,

on windows? never saw this in a real use, normaly the vlc-help.txt is written
to a file, which would be viewed by notepad.exe or something like that,
which isn't capable to show the right colors, from these color codes?

and most windows users won't try something like this:

type vlc-help.txt | more

(because they don't know -- that windows has a commandline and a shell ;-) )


André

----- Original Message ----- 
From: "Pierre d'Herbemont" <pdherbemont at free.fr>
To: "Mailing list for VLC media player developers" <vlc-devel at videolan.org>
Sent: Friday, February 15, 2008 11:55 PM
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