#pragma once #include #include #include #include typedef std::function ColorCB; typedef std::function WriteCB; class ANSIParser { sf::Color $default_fg; sf::Color $default_bg; std::wstring_convert> $converter; public: ANSIParser(sf::Color default_fg, sf::Color default_bg); // disable copying ANSIParser(ANSIParser& ap) = delete; bool parse(std::wstring_view codes, ColorCB color_cb, WriteCB write_cb); };