mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
Add syntax Color x
x = 0 to 9 Now color are working as it should svn path=/trunk/; revision=15239
This commit is contained in:
parent
1add9174ff
commit
fbeb0ec2cd
1 changed files with 10 additions and 1 deletions
|
@ -85,6 +85,15 @@ INT CommandColor (LPTSTR first, LPTSTR rest)
|
||||||
return 0;
|
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)
|
if (StringToColor(&wColor, &rest) == FALSE)
|
||||||
{
|
{
|
||||||
ConErrResPuts(STRING_COLOR_ERROR2);
|
ConErrResPuts(STRING_COLOR_ERROR2);
|
||||||
|
|
Loading…
Reference in a new issue