Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
5154513d
Commit
5154513d
authored
Feb 19, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/libvlc.c: "stty size" won't work on win32 so make ConsoleWidth() always return 80.
parent
d21cd32a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/libvlc.c
src/libvlc.c
+6
-2
No files found.
src/libvlc.c
View file @
5154513d
...
...
@@ -2,7 +2,7 @@
* libvlc.c: main libvlc source
*****************************************************************************
* Copyright (C) 1998-2002 VideoLAN
* $Id: libvlc.c,v 1.6
4 2003/02/14 18:22:23 sam
Exp $
* $Id: libvlc.c,v 1.6
5 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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment