Wavetronix Click 500 (programmable controller) (CLK-500) - Developer Guide User Manual
Page 50
CHAPTER 4 • OPERATING FUNCTIONS AND MENU 49
{
printf(“\n\nRunning Task A...”);
if (ClickMenuSelection1() == 1)
ChangeTextColor( STDIO_BLUE );
if (ClickMenuSelection1() == 2)
ChangeTextColor( STDIO_RED );
if (ClickMenuSelection1() == 3)
ChangeTextColor( STDIO_GREEN );
if (ClickMenuSelection1() == 4)
ChangeTextColor( STDIO_BLACK );
printf(“Finished\n”);
}
void ChangeTextColor( int color )
{
printf(“\x1b[%dm”, color);
}
This manual is related to the following products: