[CMD] Print a newline after the interactive 'pause' command message finishes to run.

This commit is contained in:
Hermès Bélusca-Maïto 2018-06-03 02:13:11 +02:00
parent 07302fe8eb
commit 39af25024a
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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;
} }