ANSI code renderer starts working but I have to make it utf8/wchar_t friendly.

This commit is contained in:
Zed A. Shaw 2024-11-01 18:07:47 -04:00
parent 6ca4614fcb
commit ae484bf425
9 changed files with 136 additions and 139 deletions

View file

@ -1,4 +1,7 @@
#pragma once
#include <string_view>
#include <SFML/Graphics.hpp>
bool parse_ansi(std::string_view codes);
typedef std::function<void(sf::Color bgcolor, sf::Color color, char ch)> WriteCB;
bool parse_ansi(std::string_view codes, sf::Color default_fg, sf::Color default_bg, WriteCB write);