Celeritas  0.5.0-86+4a8eea4
Functions
ColorUtils.hh File Reference

Helper functions for writing colors to the terminal. More...

This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Helper functions for writing colors to the terminal.

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)