The next little game in the series where I make a fancy rogue game.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
roguish/ansi_parser.hpp

7 lines
249 B

#pragma once
#include <string_view>
#include <SFML/Graphics.hpp>
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);