[ros-diffs] [greatlrd] 16424: Brandon Turner turnerb7@msu.edu. Bug
fix color now it working as ms cmd color. Please everyone
that have done translate of cmd,
update the language's file. some text have been modify and add in cmd
en.rc
greatlrd at svn.reactos.com
greatlrd at svn.reactos.com
Tue Jul 5 14:06:30 CEST 2005
Brandon Turner turnerb7 at msu.edu. Bug fix color now it working as ms cmd
color. Please everyone that have done translate of cmd, update the
language's file. some text have been modify and add in cmd en.rc
Modified: trunk/reactos/subsys/system/cmd/En.rc
Modified: trunk/reactos/subsys/system/cmd/color.c
_____
Modified: trunk/reactos/subsys/system/cmd/En.rc
--- trunk/reactos/subsys/system/cmd/En.rc 2005-07-05 08:48:43 UTC
(rev 16423)
+++ trunk/reactos/subsys/system/cmd/En.rc 2005-07-05 12:06:27 UTC
(rev 16424)
@@ -89,9 +89,9 @@
/T:bf Sets the background/foreground color (see COLOR
command)."
STRING_COLOR_HELP1, "Sets the default foreground and background
colors.\n\n\
-COLOR [attr [/F]] \n\n\
+COLOR [attr [/-F]] \n\n\
attr Specifies color attribute of console output\n\
- /F fill the console with color attribute\n\n\
+ /-F Does not fill the console blank space with color
attribute\n\n\
There are three ways to specify the colors:\n\
1) [bright] name on [bright] name (only the first three letters are
required)\n\
2) decimal on decimal\n\
_____
Modified: trunk/reactos/subsys/system/cmd/color.c
--- trunk/reactos/subsys/system/cmd/color.c 2005-07-05 08:48:43 UTC
(rev 16423)
+++ trunk/reactos/subsys/system/cmd/color.c 2005-07-05 12:06:27 UTC
(rev 16424)
@@ -32,7 +32,7 @@
}
-VOID SetScreenColor (WORD wColor, BOOL bFill)
+VOID SetScreenColor (WORD wColor, BOOL bNoFill)
{
DWORD dwWritten;
CONSOLE_SCREEN_BUFFER_INFO csbi;
@@ -45,7 +45,7 @@
}
else
{
- if (bFill == TRUE)
+ if (bNoFill != TRUE)
{
GetConsoleScreenBufferInfo (hConsole, &csbi);
@@ -81,7 +81,7 @@
{
/* set default color */
wColor = wDefColor;
- SetScreenColor (wColor, TRUE);
+ SetScreenColor (wColor, FALSE);
return 0;
}
@@ -125,7 +125,7 @@
/* set color */
SetScreenColor(wColor,
- (_tcsstr (rest,_T("/F")) || _tcsstr
(rest,_T("/f"))));
+ (_tcsstr (rest,_T("/-F")) || _tcsstr
(rest,_T("/-f"))));
return 0;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050705/e025d7da/attachment.html
More information about the Ros-diffs
mailing list