2 * ECHO.C - echo internal command.
7 * 16 Jul 1998 (Hans B Pufal)
10 * 16 Jul 1998 (John P Price)
11 * Separated commands into individual files.
13 * 27-Jul-1998 (John P Price <linux-guru@gcfl.net>)
14 * Added config.h include
16 * 08-Dec-1998 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
17 * Added help text ("/?").
19 * 19-Jan-1999 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
20 * Unicode and redirection ready!
33 INT
cmd_echo (LPTSTR cmd
, LPTSTR param
)
36 DebugPrintf ("cmd_echo '%s' : '%s'\n", cmd
, param
);
39 if (!_tcsncmp (param
, _T("/?"), 2))
41 ConOutPuts ("Displays messages or switches command echoing on or off.\n\n"
42 "ECHO [ON | OFF]\nECHO [message]\n\n"
43 "Type ECHO without a parameter to display the current ECHO setting.");
47 if (_tcsicmp (param
, D_OFF
) == 0)
49 else if (_tcsicmp (param
, D_ON
) == 0)
54 ConOutPrintf (_T("ECHO is %s\n"), bEcho
? D_ON
: D_OFF
);