[CSCRIPT][WSCRIPT] Sync with Wine Staging 3.17. CORE-15127
[reactos.git] / base / shell / cmd / title.c
1 /*
2 * title.c - title internal command.
3 *
4 *
5 * History:
6 * 1999-02-11 Emanuele Aliberti
7 *
8 * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
9 * Remove all hardcoded strings in En.rc
10 */
11
12 #include "precomp.h"
13
14 #ifdef INCLUDE_CMD_TITLE
15
16 extern BOOL bTitleSet;
17
18 INT cmd_title(LPTSTR param)
19 {
20 /* Do nothing if no args */
21 if (*param == _T('\0'))
22 return 0;
23
24 /* Asking help? */
25 if (!_tcsncmp(param, _T("/?"), 2))
26 {
27 ConOutResPaging(TRUE, STRING_TITLE_HELP);
28 return 0;
29 }
30
31 /* Set the new console title, and tell CMD to not reset it */
32 bTitleSet = FALSE;
33 return ConSetTitle(param);
34 }
35
36 #endif /* INCLUDE_CMD_TITLE */
37
38 /* EOF */