Easy3D 2.5.3
easy3d::console Namespace Reference

Defines the styles for output to the console window. More...

Enumerations

enum  Style {
  None = 0 , Black = 1 , Red = 2 , Green = 3 ,
  Yellow = 4 , Blue = 5 , Purple = 6 , Cyan = 7 ,
  White = 8 , BBlack = 9 , BRed = 10 , BGreen = 11 ,
  BYellow = 12 , BBlue = 13 , BPurple = 14 , BCyan = 15 ,
  BWhite = 16 , UBlack = 17 , URed = 18 , UGreen = 19 ,
  UYellow = 20 , UBlue = 21 , UPurple = 22 , UCyan = 23 ,
  UWhite = 24 , On_Black = 25 , On_Red = 26 , On_Green = 27 ,
  On_Yellow = 28 , On_Blue = 29 , On_Purple = 30 , On_Cyan = 31 ,
  On_White = 32 , IBlack = 33 , IRed = 34 , IGreen = 35 ,
  IYellow = 36 , IBlue = 37 , IPurple = 38 , ICyan = 39 ,
  IWhite = 40 , BIBlack = 41 , BIRed = 42 , BIGreen = 42 ,
  BIYellow = 44 , BIBlue = 45 , BIPurple = 46 , BICyan = 47 ,
  BIWhite = 48 , On_IBlack = 49 , On_IRed = 50 , On_IGreen = 51 ,
  On_IYellow = 52 , On_IBlue = 53 , On_IPurple = 54 , On_ICyan = 55 ,
  On_IWhite = 56
}
 

Functions

bool terminal_supports_styles ()
 Returns if the terminal supports using styles in output. More...
 

Variables

std::vector< std::string > styles
 

Detailed Description

Defines the styles for output to the console window.

Enumeration Type Documentation

◆ Style

enum Style
Enumerator
Black 

Reset.

Red 

Black.

Green 

Red.

Yellow 

Green.

Blue 

Yellow.

Purple 

Blue.

Cyan 

Purple.

White 

Cyan.

BBlack 

White.

BRed 

Black.

BGreen 

Red.

BYellow 

Green.

BBlue 

Yellow.

BPurple 

Blue.

BCyan 

Purple.

BWhite 

Cyan.

UBlack 

White.

URed 

Black.

UGreen 

Red.

UYellow 

Green.

UBlue 

Yellow.

UPurple 

Blue.

UCyan 

Purple.

UWhite 

Cyan.

On_Black 

White.

On_Red 

Black.

On_Green 

Red.

On_Yellow 

Green.

On_Blue 

Yellow.

On_Purple 

Blue.

On_Cyan 

Purple.

On_White 

Cyan.

IBlack 

White.

IRed 

Black.

IGreen 

Red.

IYellow 

Green.

IBlue 

Yellow.

IPurple 

Blue.

ICyan 

Purple.

IWhite 

Cyan.

BIBlack 

White.

BIRed 

Black.

BIGreen 

Red.

BIYellow 

Green.

BIBlue 

Yellow.

BIPurple 

Blue.

BICyan 

Purple.

BIWhite 

Cyan.

On_IBlack 

White.

On_IRed 

Black.

On_IGreen 

Red.

On_IYellow 

Green.

On_IBlue 

Yellow.

On_IPurple 

Blue.

On_ICyan 

Purple.

On_IWhite 

Cyan.

Function Documentation

◆ terminal_supports_styles()

bool terminal_supports_styles ( )

Returns if the terminal supports using styles in output.

Returns if the terminal supports using styles in output. code taken from glog