Commit 5154513d authored by Gildas Bazin's avatar Gildas Bazin

* src/libvlc.c: "stty size" won't work on win32 so make ConsoleWidth()
   always return 80.
parent d21cd32a
......@@ -2,7 +2,7 @@
* libvlc.c: main libvlc source
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
* $Id: libvlc.c,v 1.64 2003/02/14 18:22:23 sam Exp $
* $Id: libvlc.c,v 1.65 2003/02/19 10:02:57 gbazin Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
......@@ -1388,9 +1388,12 @@ static void ShowConsole( void )
*****************************************************************************/
static int ConsoleWidth( void )
{
int i_width = 80;
#ifndef WIN32
char buf[20], *psz_parser;
FILE *file;
int i_ret, i_width = 80;
int i_ret;
file = popen( "stty size 2>/dev/null", "r" );
if( file )
......@@ -1412,6 +1415,7 @@ static int ConsoleWidth( void )
pclose( file );
}
#endif
return i_width;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment