Enable true color output (closes #705)

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion 2025-03-06 12:47:28 +01:00
commit d0ccaa4d69
No known key found for this signature in database
11 changed files with 134 additions and 92 deletions

View file

@ -72,6 +72,7 @@ pub fn build(b: *std.Build) !void {
.optimize = optimize,
});
translate_c.defineCMacroRaw("TB_IMPL");
translate_c.defineCMacro("TB_OPT_ATTR_W", "32"); // Enable 24-bit color support + styling (32-bit)
const termbox2 = translate_c.addModule("termbox2");
exe.root_module.addImport("termbox2", termbox2);