Change the color of text that will be output from this point forward.

Synopsis

Declared in <llvm/Support/WithColor.h>

WithColor&
changeColor(
    raw_ostream::Colors Color,
    bool Bold = false,
    bool BG = false);

Description

FIXME: If Color == SAVEDCOLOR, Bold == false is currently ignored.

Return Value

This colored stream wrapper.

Parameters

Name

Description

Color

ANSI color to use, the special SAVEDCOLOR can be used to change only the bold attribute, and keep colors untouched

Bold

Bold/brighter text, default false

BG

If true, change the background, default: change foreground

Created with MrDocs