Nektar++
Loading...
Searching...
No Matches
Variables
Nektar::ansi Namespace Reference

Convenience namespace for some basic ANSI terminal codes. More...

Variables

const std::string bold = "\x1B[1m"
 Bold text.
 
const std::string red = "\033[0;31m"
 Red text.
 
const std::string green = "\033[1;32m"
 Green text.
 
const std::string yellow = "\033[1;33m"
 Yellow text.
 
const std::string cyan = "\033[0;36m"
 Cyan text.
 
const std::string magenta = "\033[0;35m"
 Magenta text.
 
const std::string reset = "\033[0m"
 Reset/remove all formatting.
 

Detailed Description

Convenience namespace for some basic ANSI terminal codes.

Variable Documentation

◆ bold

const std::string Nektar::ansi::bold = "\x1B[1m"
private

Bold text.

Definition at line 168 of file Log.hpp.

Referenced by Nektar::Logger::GetPrefixString().

◆ cyan

const std::string Nektar::ansi::cyan = "\033[0;36m"
private

Cyan text.

Definition at line 176 of file Log.hpp.

◆ green

const std::string Nektar::ansi::green = "\033[1;32m"
private

Green text.

Definition at line 172 of file Log.hpp.

◆ magenta

const std::string Nektar::ansi::magenta = "\033[0;35m"
private

Magenta text.

Definition at line 178 of file Log.hpp.

◆ red

const std::string Nektar::ansi::red = "\033[0;31m"
private

Red text.

Definition at line 170 of file Log.hpp.

Referenced by Nektar::Logger::GetPrefixString().

◆ reset

const std::string Nektar::ansi::reset = "\033[0m"
private

Reset/remove all formatting.

Definition at line 180 of file Log.hpp.

Referenced by Nektar::Logger::GetPrefixString(), and Nektar::Logger::operator<<().

◆ yellow

const std::string Nektar::ansi::yellow = "\033[1;33m"
private

Yellow text.

Definition at line 174 of file Log.hpp.

Referenced by Nektar::Logger::GetPrefixString().