wm: teppich

ref: c8770a0db8bbbf7a51b344595f05923dd576a6af
dir: /include/cons.h/

View raw version
#pragma once
typedef struct
{
	char *name;
	
	void (*init)(void);
	void (*clear)(char);
	void (*puts)(char *s);
	void (*putc)(char c);
	char (*getc)(void);
}consdev_t;

void consinit(consdev_t);
void consclear(consdev_t, char);
void conswrite(consdev_t cons, char* s);
void consputc(consdev_t, char c);
char consread(consdev_t cons);