wm: teppich

ref: bb4b8654acda0d7ec184206cf0ed186d6625ba6e
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);
	void (*scroll)(int lines);
}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);
void consscroll(consdev_t, int lines);