MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / GetTerminalColour

Function GetTerminalColour

Source/Debug/DebugConsoleImpl.cpp:23–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "DebugConsoleImpl.h"
22
23ETerminalColour GetTerminalColour(char c)
24{
25 switch(c)
26 {
27 case 'r': return TC_r;
28 case 'g': return TC_g;
29 case 'y': return TC_y;
30 case 'b': return TC_b;
31 case 'm': return TC_m;
32 case 'c': return TC_c;
33 case 'w': return TC_w;
34 case 'R': return TC_R;
35 case 'G': return TC_G;
36 case 'Y': return TC_Y;
37 case 'B': return TC_B;
38 case 'M': return TC_M;
39 case 'C': return TC_C;
40 case 'W': return TC_W;
41 default: return TC_INVALID;
42 }
43}
44
45const char * const gTerminalColours[NUM_TERMINAL_COLOURS] =
46{

Callers 2

ParseAndDisplayStringMethod · 0.85
ParseFormatStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected