Fumofumotris/source/fumoengine/terminal/term.h
Julia 24599197c0 afds
asfd
2024-05-06 00:52:30 -05:00

29 lines
479 B
C

#pragma once
#include <iso646.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "fumocommon.h"
struct Char4 {
char ch;
u8 bg : 4;
u8 fg : 4;
};
struct Terminal {
size_t wid;
size_t hgt;
size_t area;
struct Char4 *chs;
};
bool CreateTerminal(struct Terminal *term, size_t wid, size_t hgt);
void FreeTerminal(struct Terminal *term);
size_t TerminalPrint(char *dest, size_t n, struct Terminal *term);