* Remove all hardcode string to En.rc
*/
-#include "precomp.h"
+#include <precomp.h>
#include "resource.h"
INT CommandEcho (LPTSTR cmd, LPTSTR param)
{
TCHAR szMsg[RC_STRING_MAX_SIZE];
+ INT i = 0;
#ifdef _DEBUG
DebugPrintf (_T("CommandEcho '%s' : '%s'\n"), cmd, param);
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_ECHO_HELP4);
+ ConOutResPaging(TRUE,STRING_ECHO_HELP4);
return 0;
}
else if (_tcsicmp (param, D_ON) == 0)
bEcho = TRUE;
else if (*param)
+ {
+ while(i < _tcslen(param))
+ {
+ if(param[i] == _T('^'))
+ {
+ memmove(¶m[i],¶m[i + 1], _tcslen(¶m[i]) * sizeof(TCHAR));
+ //skip past the char being escaped
+ i++;
+ }
+ else
+ i++;
+ }
ConOutPuts (param);
+ }
else
{
LoadString(CMD_ModuleHandle, STRING_ECHO_HELP5, szMsg, RC_STRING_MAX_SIZE);