Add hex value to Color syntax so it working fine
Color x
x = a - f
Modified: trunk/reactos/subsys/system/cmd/color.c
_____
Modified: trunk/reactos/subsys/system/cmd/color.c
--- trunk/reactos/subsys/system/cmd/color.c 2005-05-12 18:08:25 UTC
(rev 15241)
+++ trunk/reactos/subsys/system/cmd/color.c 2005-05-12 18:20:41 UTC
(rev 15242)
@@ -91,7 +91,20 @@
if ( (_tcscmp(&rest[0], _T("0")) >=0 ) &&
(_tcscmp(&rest[0],
_T("9")) <=0 ) )
{
SetConsoleTextAttribute (hConsole, (WORD)_ttoi(rest));
+ return 0;
}
+ else if ( (_tcscmp(&rest[0], _T("a")) >=0 ) &&
(_tcscmp(&rest[0], _T("f")) <=0 ) )
+ {
+ SetConsoleTextAttribute (hConsole, (WORD) (rest[0] + 10) -
_T('a') );
+ return 0;
+ }
+ else if ( (_tcscmp(&rest[0], _T("A")) >=0 ) &&
(_tcscmp(&rest[0],
_T("F")) <=0 ) )
+ {
+ SetConsoleTextAttribute (hConsole, (WORD) (rest[0] + 10) -
_T('A') );
+ return 0;
+ }
+ ConErrResPuts(STRING_COLOR_ERROR2);
+ return 1;
}
if (StringToColor(&wColor, &rest) == FALSE)
Show replies by date