--- trunk/reactos/subsys/system/cmd/color.c 2005-05-12 16:44:39 UTC (rev 15238)
+++ trunk/reactos/subsys/system/cmd/color.c 2005-05-12 17:30:52 UTC (rev 15239)
@@ -84,9 +84,18 @@
SetScreenColor (wColor, TRUE);
return 0;
}
+
+
+ if ( _tcslen(&rest[0])==1)
+ {
+ if ( (_tcscmp(&rest[0], _T("0")) >=0 ) && (_tcscmp(&rest[0], _T("9")) <=0 ) )
+ {
+ SetConsoleTextAttribute (hConsole, (WORD)_ttoi(rest));
+ }
+ }
if (StringToColor(&wColor, &rest) == FALSE)
- {
+ {
ConErrResPuts(STRING_COLOR_ERROR2);
return 1;
}