ANSI code renderer starts working but I have to make it utf8/wchar_t friendly.
This commit is contained in:
parent
6ca4614fcb
commit
ae484bf425
9 changed files with 136 additions and 139 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue