FairFormattedOutput
Added in version 0.2.0.
Requires CMake 3.12 or later.
On inclusion
Defines variables with ANSI escape codes useful for coloring logs:
CMake variable |
ANSI code |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Disable by setting DISABLE_COLOR to true.
fair_pad()
fair_pad(<str> <width> <char> <out> [LEFT] [COLOR])
Pad given <str> to <width> with <char> and populate the result in
the variable with name given in <out>. Optionally, pad from the left with
LEFT and filter out ANSI color codes with COLOR.