MCPcopy Create free account
hub / github.com/Vector35/debugger / AsAnsi

Method AsAnsi

cli/log.h:44–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()

Callers 1

formatMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected