|
ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
|
Enumerations | |
| enum class | AnsiCode : int { Reset = 0 , BoldOn = 1 , Faint = 2 , ItalicOn = 3 , UnderlineOn = 4 , SlowBlinkOn = 5 , RapidBlinkOn = 6 , ReverseVideoOn = 7 , ConcealOn = 8 , CrossedOutOn = 9 , BoldOff = 22 , ItalicOff = 23 , UnderlineOff = 24 , BlinkOff = 25 , ReverseVideoOff = 27 , ConcealOff = 28 , CrossedOutOff = 29 , TextBlack = 30 , TextRed = 31 , TextGreen = 32 , TextYellow = 33 , TextBlue = 34 , TextMagenta = 35 , TextCyan = 36 , TextWhite = 37 , TextDefault = 39 , BgBlack = 40 , BgRed = 41 , BgGreen = 42 , BgYellow = 43 , BgBlue = 44 , BgMagenta = 45 , BgCyan = 46 , BgWhite = 47 , BgDefault = 49 , TextBrightBlack = 90 , TextBrightRed = 91 , TextBrightGreen = 92 , TextBrightYellow = 93 , TextBrightBlue = 94 , TextBrightMagenta = 95 , TextBrightCyan = 96 , TextBrightWhite = 97 } |
| ANSI escape codes for terminal formatting. More... | |
Functions | |
| const char * | level_to_string (asw::log::Level level) |
| std::string | ansi_to_string (AnsiCode code) |
| AnsiCode | level_to_ansi (asw::log::Level level) |
| std::string | get_timestamp () |
Variables | |
| asw::log::Level | current_level = asw::log::Level::INFO |
| std::ostream * | output = &std::cerr |
|
strong |
ANSI escape codes for terminal formatting.
|
inline |
| AnsiCode anonymous_namespace{log.cpp}::level_to_ansi | ( | asw::log::Level | level | ) |
| const char * anonymous_namespace{log.cpp}::level_to_string | ( | asw::log::Level | level | ) |
| asw::log::Level anonymous_namespace{log.cpp}::current_level = asw::log::Level::INFO |