Rewrote the ansi parser to exactly callback on color setting, so now just need to clean this all up and fix a few little bugs.
This commit is contained in:
parent
96ee16e598
commit
89a70f398a
9 changed files with 274 additions and 126 deletions
3
main.cpp
3
main.cpp
|
@ -9,6 +9,8 @@
|
|||
#include "save.hpp"
|
||||
#include "ftxui/screen/terminal.hpp" // for SetColorSupport, Color, TrueColor
|
||||
#include <filesystem>
|
||||
#include <fcntl.h>
|
||||
#include <io.h>
|
||||
|
||||
using namespace ftxui;
|
||||
namespace fs = std::filesystem;
|
||||
|
@ -49,6 +51,7 @@ void configure_world(DinkyECS::World &world, Map &game_map) {
|
|||
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
_setmode(_fileno(stdout), _O_U16TEXT);
|
||||
DinkyECS::World world;
|
||||
|
||||
Map game_map(GAME_MAP_X, GAME_MAP_Y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue