Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
72939ffc
Commit
72939ffc
authored
Sep 05, 2005
by
gbazin
Browse files
* src/libvlc.c: on win32, redirect stdout to vlc-help.txt when printing the help.
parent
a89fa968
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libvlc.c
View file @
72939ffc
...
...
@@ -2422,11 +2422,21 @@ static void Version( void )
static
void
ShowConsole
(
void
)
{
# ifndef UNDER_CE
FILE
*
f_help
;
if
(
getenv
(
"PWD"
)
&&
getenv
(
"PS1"
)
)
return
;
/* cygwin shell */
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
(
"CONIN$"
,
"r"
,
stdin
);
...
...
@@ -2445,8 +2455,10 @@ static void PauseConsole( void )
# ifndef UNDER_CE
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
();
fclose
(
stdout
);
# endif
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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