Returns the character attribute for the given color.
| 3861 | |
| 3862 | // Returns the character attribute for the given color. |
| 3863 | WORD GetColorAttribute(GTestColor color) { |
| 3864 | switch (color) { |
| 3865 | case COLOR_RED: return FOREGROUND_RED; |
| 3866 | case COLOR_GREEN: return FOREGROUND_GREEN; |
| 3867 | case COLOR_YELLOW: return FOREGROUND_RED | FOREGROUND_GREEN; |
| 3868 | default: return 0; |
| 3869 | } |
| 3870 | } |
| 3871 | |
| 3872 | #else |
| 3873 |