Syntax
void ColorSelect( int index );
Arguments
index One of CLR_STANDARD, CLR_ENHANCED, CLR_BORDER, CLR_BACKGROUND or CLR_UNSELECTED.
Return value
No return value.
Description
Select a zero-based slot in the palette set by `SetColor()`. The named slots in `xdev-wtui-color.h` include `CLR_STANDARD` and `CLR_ENHANCED`. Later writes that use the current palette draw with the selected pair. Use `ColorSelect( CLR_STANDARD )` to resume standard output.
Example
#include "xdev-wtui.h"
int main( void )
{
SetColor( "W/B,GR+/R" );
ColorSelect( CLR_ENHANCED );
DispOut( "Highlighted text", NULL );
ColorSelect( CLR_STANDARD );
Inkey( 0, NIL );
return 0;
}