[vlc-devel] Re: vlc --help is useless on windows

CUTMAN ~CW~ cutmancw at hotmail.com
Thu Sep 8 05:15:35 CEST 2005


>From: Gildas Bazin <gbazin at altern.org>
>Reply-To: vlc-devel at videolan.org
>To: vlc-devel at videolan.org
>Subject: [vlc-devel] Re: vlc --help is useless on windows
>Date: Mon, 5 Sep 2005 21:27:47 +0100
>
>On Sunday 04 September 2005 02:19, Brian Robb wrote:
> > The command: vlc --help is useless on windows, because vlc spawns a dos
> > window
> > and prints the help info into it, leaving all but the last bit of help
> > visible.
> >
> > (You can't scroll up on windows...)
> > You can't redirect it like: "vlc --help > help.txt" so you're stuck.
> >
>
>Actually "vlc --help" does work nicely on win32 but only if you use the
>cygwin shell (rxvt).
>
>Your patch is also overcomplicated since you could just do:
>freopen( "vlc-help.txt", "w", stdout );
>
>Anyway, I'll try to apply something like that.
>
>--
>Gildas
>
>--
>This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
>To unsubscribe, please read http://developers.videolan.org/lists.html
>

the help on xp is also ok, if you know how to tweak the console settings to 
make the screen buffer large enough to handle --advanced... -then just 
copy/paste the info after the output has occured.

as for a fix, it looks to me like a couple additional lines would do 
nicely.. along these lines:

in `ShowConsole'..

this part:
    freopen( "CONOUT$", "w", stdout );
    freopen( "CONOUT$",  "w", stderr );

becomes more like this(psuedo code example ;):

    /* parse command line args for the windows redirector character '>' */
    if( !strcmp( command_line_args, '>' ) )
    {
        char dst[] = nextStringOf( '>' );/* pick out the user specified 
path/name */
        freopen( dst, "w", stdout );
        freopen( dst, "w", stderr );
    }
    else
    {
        freopen( "CONOUT$", "w", stdout );
        freopen( "CONOUT$", "w", stderr );
    }

just my take on the situation..

zcot

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list