SA_Logger
Sapphire's Suite's C++ Logger.
Loading...
Searching...
No Matches
Typedefs | Enumerations | Functions
ConsoleColor.hpp File Reference

Console Color enum implementation. More...

#include <cstdint>

Go to the source code of this file.

Typedefs

using SA::CslColor = ConsoleColor
 Shortcut alias.
 

Enumerations

enum  SA::ConsoleColor : uint8_t {
  SA::None_FG = 0 , SA::Red_FG = 1 , SA::Green_FG = 2 , SA::Blue_FG = 3 ,
  SA::Cyan_FG = 4 , SA::Magenta_FG = 5 , SA::Yellow_FG = 6 , SA::Black_FG = 7 ,
  SA::Bright_FG = 8 , SA::None_BG = 0 << 4 , SA::Red_BG = 1 << 4 , SA::Green_BG = 2 << 4 ,
  SA::Blue_BG = 3 << 4 , SA::Cyan_BG = 4 << 4 , SA::Magenta_BG = 5 << 4 , SA::Yellow_BG = 6 << 4 ,
  SA::White_BG = 7 << 4 , SA::Bright_BG = 8 << 4 , SA::Reset = None_FG | None_BG
}
 Console Color enum. More...
 

Functions

void SA::SetConsoleColor (ConsoleColor _cslColor)
 Crossplatform implementation of set color in console.
 

Detailed Description

Console Color enum implementation.

Enumeration Type Documentation

◆ ConsoleColor

enum SA::ConsoleColor : uint8_t

Console Color enum.

Bright BG bit BG Color bits Bright FG bit FG Color bits 0 000 0 000

Enumerator
None_FG 

Default foreground.

Red_FG 

Red foreground.

Green_FG 

Green foreground.

Blue_FG 

Blue foreground.

Cyan_FG 

Cyan foreground.

Magenta_FG 

Magenta foreground.

Yellow_FG 

Yellow foreground.

Black_FG 

Black foreground.

Bright_FG 

1 bit for bright attribute.

None_BG 

Default background.

Red_BG 

Red background.

Green_BG 

Green background.

Blue_BG 

Blue background.

Cyan_BG 

Cyan background.

Magenta_BG 

Magenta background.

Yellow_BG 

Yellow background.

White_BG 

White background.

Bright_BG 

1 bit for Bright attribute.

Reset 

Reset console color value.

Function Documentation

◆ SetConsoleColor()

void SA::SetConsoleColor ( ConsoleColor _cslColor)

Crossplatform implementation of set color in console.

Parameters
[in]_cslColorConsole color mask.