#pragma once #include #include #include #include #include #include "fumocommon.h" struct Color4 { u8 bg : 4; u8 fg : 4; }; struct Char4 { struct Color4 color; char ch; }; struct Terminal { usize wid; usize hgt; struct Char4 *buf; }; usize TerminalMaxOut(struct Terminal *term); bool CreateTerminal(struct Terminal *term, usize wid, usize hgt); void FreeTerminal(struct Terminal *term); usize TerminalPrint(struct Terminal *term, char *out, usize n);