Declaration:
void SetTextColor(unsigned long handle, unsigned long color);
Description
Sets up color of the text printed out by the wprintf function, or displayed by the DisplayText and DisplayTextF functions. The color you set remains unchanged until SetTextColor is called for the next time. The standard color is used by default.
Example
unsigned long handle = OpenStreamWindow("Serial port");
SetTextColor(handle, 0xFF);
wprintf(handle, "Will be written in red color\n");
SetTextColor(handle, 0xFF00);
wprintf(handle, "Will be written in green color");
|