2006-02-16 23:23:37 +00:00
|
|
|
/*
|
|
|
|
* PAUSE.C - pause internal command.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* History:
|
|
|
|
*
|
|
|
|
* 16 Jul 1998 (Hans B Pufal)
|
|
|
|
* started.
|
|
|
|
*
|
|
|
|
* 16 Jul 1998 (John P Price)
|
2016-11-05 14:55:55 +00:00
|
|
|
* Separated commands into individual files.
|
2006-02-16 23:23:37 +00:00
|
|
|
*
|
|
|
|
* 27-Jul-1998 (John P Price <linux-guru@gcfl.net>)
|
|
|
|
* added config.h include
|
|
|
|
*
|
2007-05-05 11:32:25 +00:00
|
|
|
* 18-Jan-1999 (Eric Kohl)
|
2006-02-16 23:23:37 +00:00
|
|
|
* Unicode ready!
|
|
|
|
*/
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include "precomp.h"
|
2006-02-16 23:23:37 +00:00
|
|
|
|
|
|
|
#ifdef INCLUDE_CMD_PAUSE
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Perform PAUSE command.
|
|
|
|
*
|
|
|
|
* FREEDOS extension : If parameter is specified use that as the pause
|
|
|
|
* message.
|
|
|
|
*
|
|
|
|
* ?? Extend to include functionality of CHOICE if switch chars
|
|
|
|
* specified.
|
|
|
|
*
|
2013-06-30 00:08:43 +00:00
|
|
|
* 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
|
|
|
|
* Remove all hardcoded strings in En.rc
|
2006-02-16 23:23:37 +00:00
|
|
|
*/
|
|
|
|
|
2018-06-03 00:13:11 +00:00
|
|
|
INT cmd_pause(LPTSTR param)
|
2006-02-16 23:23:37 +00:00
|
|
|
{
|
2018-06-03 00:13:11 +00:00
|
|
|
TRACE("cmd_pause: \'%s\')\n", debugstr_aw(param));
|
2006-02-16 23:23:37 +00:00
|
|
|
|
2018-06-03 00:13:11 +00:00
|
|
|
if (!_tcsncmp(param, _T("/?"), 2))
|
2013-06-30 00:08:43 +00:00
|
|
|
{
|
|
|
|
ConOutResPaging(TRUE,STRING_PAUSE_HELP1);
|
|
|
|
return 0;
|
|
|
|
}
|
2006-02-16 23:23:37 +00:00
|
|
|
|
2013-06-30 00:08:43 +00:00
|
|
|
if (*param)
|
2018-06-03 00:13:11 +00:00
|
|
|
ConOutPuts(param);
|
2013-06-30 00:08:43 +00:00
|
|
|
else
|
2018-06-03 00:13:11 +00:00
|
|
|
msg_pause();
|
2006-02-16 23:23:37 +00:00
|
|
|
|
2018-06-03 00:13:11 +00:00
|
|
|
cgetchar();
|
2006-02-16 23:23:37 +00:00
|
|
|
|
2018-06-03 00:13:11 +00:00
|
|
|
ConOutChar(_T('\n'));
|
2013-06-30 00:08:43 +00:00
|
|
|
return 0;
|
2006-02-16 23:23:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* EOF */
|