mirror of
https://github.com/reactos/reactos.git
synced 2024-09-24 19:48:55 +00:00
[0.4.9] cherry-pick [CMD] Print a newline after the interactive 'pause' command message finishes to run.
(cherry picked from commit 39af25024a
)
This commit is contained in:
parent
7b3affa096
commit
9a6be75d5f
|
@ -34,23 +34,24 @@
|
||||||
* Remove all hardcoded strings in En.rc
|
* Remove all hardcoded strings in En.rc
|
||||||
*/
|
*/
|
||||||
|
|
||||||
INT cmd_pause (LPTSTR param)
|
INT cmd_pause(LPTSTR param)
|
||||||
{
|
{
|
||||||
TRACE ("cmd_pause: \'%s\')\n", debugstr_aw(param));
|
TRACE("cmd_pause: \'%s\')\n", debugstr_aw(param));
|
||||||
|
|
||||||
if (!_tcsncmp (param, _T("/?"), 2))
|
if (!_tcsncmp(param, _T("/?"), 2))
|
||||||
{
|
{
|
||||||
ConOutResPaging(TRUE,STRING_PAUSE_HELP1);
|
ConOutResPaging(TRUE,STRING_PAUSE_HELP1);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*param)
|
if (*param)
|
||||||
ConOutPrintf (param);
|
ConOutPuts(param);
|
||||||
else
|
else
|
||||||
msg_pause ();
|
msg_pause();
|
||||||
|
|
||||||
cgetchar ();
|
cgetchar();
|
||||||
|
|
||||||
|
ConOutChar(_T('\n'));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue