- Sync with trunk r58248 to bring the latest changes from Amine (headers) and others...
[reactos.git] / base / shell / cmd / pause.c
1 /*
2 * PAUSE.C - pause internal command.
3 *
4 *
5 * History:
6 *
7 * 16 Jul 1998 (Hans B Pufal)
8 * started.
9 *
10 * 16 Jul 1998 (John P Price)
11 * Seperated commands into individual files.
12 *
13 * 27-Jul-1998 (John P Price <linux-guru@gcfl.net>)
14 * added config.h include
15 *
16 * 18-Jan-1999 (Eric Kohl)
17 * Unicode ready!
18 */
19
20 #include "precomp.h"
21
22 #ifdef INCLUDE_CMD_PAUSE
23
24 /*
25 * Perform PAUSE command.
26 *
27 * FREEDOS extension : If parameter is specified use that as the pause
28 * message.
29 *
30 * ?? Extend to include functionality of CHOICE if switch chars
31 * specified.
32 *
33 * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>)
34 * Remove all hardcode string to En.rc
35 */
36
37 INT cmd_pause (LPTSTR param)
38 {
39
40 TRACE ("cmd_pause: \'%s\')\n", debugstr_aw(param));
41
42 if (!_tcsncmp (param, _T("/?"), 2))
43 {
44 ConOutResPaging(TRUE,STRING_PAUSE_HELP1);
45 return 0;
46 }
47
48 if (*param)
49 ConOutPrintf (param);
50 else
51 msg_pause ();
52
53 cgetchar ();
54
55 return 0;
56 }
57
58 #endif
59
60 /* EOF */