Porytiles
Loading...
Searching...
No Matches
ansi_styled_text_formatter.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace porytiles2 {
6
26 public:
42 [[nodiscard]] std::string style(const std::string &text, Style styles) const override;
43};
44
45} // namespace porytiles2
TextFormatter implementation that applies ANSI escape codes for terminal styling.
std::string style(const std::string &text, Style styles) const override
Applies ANSI escape codes to style text according to the specified Style flags.
Abstract base class for applying text styling with context-aware formatting.
Style
Bitmask flags for text styling options.