MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / SetForeColor

Method SetForeColor

src/Utilities/Debug.cpp:149–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void Console::SetForeColor(ConsoleColor color)
150{
151 if (NULL == ConsoleHandle)
152 return;
153
154 if (TextAttribute.Foreground == color)
155 return;
156
157 TextAttribute.Foreground = color;
158 SetConsoleTextAttribute(ConsoleHandle, TextAttribute.AsWord);
159}
160
161void Console::SetBackColor(ConsoleColor color)
162{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected