Celeritas  0.5.0-56+6b053cd
Functions
ColorUtils.cc File Reference
#include "ColorUtils.hh"
#include <cstdio>
#include <cstdlib>
#include <string>
#include <unistd.h>
#include "corecel/sys/Environment.hh"

Functions

bool celeritas::use_color ()
 Whether colors are enabled (currently read-only).
 
char const * celeritas::color_code (char abbrev)
 Get an ANSI color codes if colors are enabled. More...
 

Function Documentation

◆ color_code()

char const * celeritas::color_code ( char  abbrev)

Get an ANSI color codes if colors are enabled.

  • [b]lue
  • [g]reen
  • [y]ellow
  • [r]ed
  • [x] gray
  • [R]ed bold
  • [W]hite bold
  • [ ] default (reset color)