| 34 | }; |
| 35 | |
| 36 | struct Style |
| 37 | { |
| 38 | float m_red {255.f}, m_green {255.f}, m_blue {255.f}; |
| 39 | |
| 40 | Style() = default; |
| 41 | |
| 42 | Style(float red, float green, float blue) : m_red(red), m_green(green), m_blue(blue) {} |
| 43 | |
| 44 | [[nodiscard]] std::string AsAnsi() const |
| 45 | { |
| 46 | return fmt::format("\x1b[38;2;{:.0f};{:.0f};{:.0f}m", this->m_red, this->m_green, this->m_blue); |
| 47 | } |
| 48 | }; |
| 49 | |
| 50 | inline void SetupAnsi() |
| 51 | { |
no outgoing calls
no test coverage detected