Cppcheck
Functions | Variables
color.cpp File Reference
#include "color.h"
#include <unistd.h>
#include <cstddef>
#include <sstream>
#include <iostream>

Go to the source code of this file.

Functions

static bool isStreamATty (const std::ostream &os)
 
std::ostream & operator<< (std::ostream &os, Color c)
 
std::string toString (Color c)
 

Variables

bool gDisableColors = false
 

Function Documentation

◆ isStreamATty()

static bool isStreamATty ( const std::ostream &  os)
static

Definition at line 31 of file color.cpp.

Referenced by operator<<().

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
Color  c 
)

Definition at line 43 of file color.cpp.

References gDisableColors, and isStreamATty().

◆ toString()

std::string toString ( Color  c)

Variable Documentation

◆ gDisableColors

bool gDisableColors = false

Definition at line 28 of file color.cpp.

Referenced by operator<<().