chore: clean up code
This commit is contained in:
parent
b76daa2927
commit
d4a6232234
1 changed files with 9 additions and 5 deletions
14
src/ansi.hpp
14
src/ansi.hpp
|
@ -1,9 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
namespace ansi {
|
||||
inline const char* reset = "\033[0m";
|
||||
#define ANSI_CODE_DEF inline const char*
|
||||
|
||||
inline const char* cyan = "\033[0;36m";
|
||||
inline const char* green = "\033[0;32m";
|
||||
inline const char* yellow = "\033[0;33m";
|
||||
namespace ansi {
|
||||
ANSI_CODE_DEF reset = "\033[0m";
|
||||
|
||||
ANSI_CODE_DEF cyan = "\033[0;36m";
|
||||
ANSI_CODE_DEF green = "\033[0;32m";
|
||||
ANSI_CODE_DEF yellow = "\033[0;33m";
|
||||
}
|
||||
|
||||
#undef ANSI_CODE_DEF
|
||||
|
|
Loading…
Reference in a new issue