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
72939ffc
Commit
72939ffc
authored
Sep 05, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/libvlc.c: on win32, redirect stdout to vlc-help.txt when printing the help.
parent
a89fa968
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
src/libvlc.c
src/libvlc.c
+14
-2
No files found.
src/libvlc.c
View file @
72939ffc
...
@@ -2422,11 +2422,21 @@ static void Version( void )
...
@@ -2422,11 +2422,21 @@ static void Version( void )
static
void
ShowConsole
(
void
)
static
void
ShowConsole
(
void
)
{
{
# ifndef UNDER_CE
# ifndef UNDER_CE
FILE
*
f_help
;
if
(
getenv
(
"PWD"
)
&&
getenv
(
"PS1"
)
)
return
;
/* cygwin shell */
if
(
getenv
(
"PWD"
)
&&
getenv
(
"PS1"
)
)
return
;
/* cygwin shell */
AllocConsole
();
AllocConsole
();
freopen
(
"CONOUT$"
,
"w"
,
stdout
);
if
(
(
f_help
=
fopen
(
"vlc-help.txt"
,
"wt"
))
)
{
fclose
(
f_help
);
freopen
(
"vlc-help.txt"
,
"wt"
,
stdout
);
fprintf
(
stderr
,
_
(
"
\n
Dumped content to vlc-help.txt file.
\n
"
)
);
}
else
freopen
(
"CONOUT$"
,
"w"
,
stdout
);
freopen
(
"CONOUT$"
,
"w"
,
stderr
);
freopen
(
"CONOUT$"
,
"w"
,
stderr
);
freopen
(
"CONIN$"
,
"r"
,
stdin
);
freopen
(
"CONIN$"
,
"r"
,
stdin
);
...
@@ -2445,8 +2455,10 @@ static void PauseConsole( void )
...
@@ -2445,8 +2455,10 @@ static void PauseConsole( void )
# ifndef UNDER_CE
# ifndef UNDER_CE
if
(
getenv
(
"PWD"
)
&&
getenv
(
"PS1"
)
)
return
;
/* cygwin shell */
if
(
getenv
(
"PWD"
)
&&
getenv
(
"PS1"
)
)
return
;
/* cygwin shell */
fprintf
(
stdout
,
_
(
"
\n
Press the RETURN key to continue...
\n
"
)
);
fprintf
(
stderr
,
_
(
"
\n
Press the RETURN key to continue...
\n
"
)
);
getchar
();
getchar
();
fclose
(
stdout
);
# endif
# endif
}
}
...
...
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