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
1c5705e4
Commit
1c5705e4
authored
Oct 21, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/libvlc.c: win32 fixes for the help output when used with a cygwin shell.
parent
57470f44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
9 deletions
+24
-9
src/libvlc.c
src/libvlc.c
+24
-9
No files found.
src/libvlc.c
View file @
1c5705e4
...
...
@@ -99,6 +99,7 @@ static void Version ( void );
#ifdef WIN32
static
void
ShowConsole
(
void
);
static
void
PauseConsole
(
void
);
#endif
static
int
ConsoleWidth
(
void
);
...
...
@@ -526,8 +527,8 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
ShowConsole
();
/* Pause the console because it's destroyed when we exit */
fprintf
(
stderr
,
"The command line options couldn't be loaded, check "
"that they are valid.
\n
Press the RETURN key to continue...
"
);
getchar
();
"that they are valid.
\n
"
);
PauseConsole
();
#endif
vlc_object_detach
(
p_help_module
);
config_Free
(
p_help_module
);
...
...
@@ -2073,8 +2074,7 @@ static void Usage( vlc_t *p_this, char const *psz_module_name )
vlc_list_release
(
p_list
);
#ifdef WIN32
/* Pause the console because it's destroyed when we exit */
fprintf
(
stdout
,
_
(
"
\n
Press the RETURN key to continue...
\n
"
)
);
getchar
();
PauseConsole
();
#endif
}
...
...
@@ -2128,8 +2128,7 @@ static void ListModules( vlc_t *p_this )
vlc_list_release
(
p_list
);
#ifdef WIN32
/* Pause the console because it's destroyed when we exit */
fprintf
(
stdout
,
_
(
"
\n
Press the RETURN key to continue...
\n
"
)
);
getchar
();
PauseConsole
();
#endif
}
...
...
@@ -2152,8 +2151,7 @@ static void Version( void )
"Written by the VideoLAN team; see the AUTHORS file.
\n
"
)
);
#ifdef WIN32
/* Pause the console because it's destroyed when we exit */
fprintf
(
stdout
,
_
(
"
\n
Press the RETURN key to continue...
\n
"
)
);
getchar
();
PauseConsole
();
#endif
}
...
...
@@ -2173,9 +2171,26 @@ static void ShowConsole( void )
freopen
(
"CONOUT$"
,
"w"
,
stdout
);
freopen
(
"CONOUT$"
,
"w"
,
stderr
);
freopen
(
"CONIN$"
,
"r"
,
stdin
);
# endif
}
#endif
/*****************************************************************************
* PauseConsole: On Win32, wait for a key press before closing the console
*****************************************************************************
* This function is useful only on Win32.
*****************************************************************************/
#ifdef WIN32
/* */
static
void
PauseConsole
(
void
)
{
# ifndef UNDER_CE
return
;
if
(
getenv
(
"PWD"
)
&&
getenv
(
"PS1"
)
)
return
;
/* cygwin shell */
fprintf
(
stdout
,
_
(
"
\n
Press the RETURN key to continue...
\n
"
)
);
getchar
();
# 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