foo
[eightysix] / kern / src / con.h
1 #ifndef CON_H_
2 #define CON_H_
3
4 struct console {
5         void (*clear)(void*);
6         void (*putc)(void*, int c);
7
8         void *data;
9 };
10
11 void con_init(struct console *con);
12
13 void con_reset(struct console *con);
14 void con_setcolor(struct console *con, int fg, int bg);
15
16 void con_setcur(struct console *con, int x, int y);
17 void con_getcur(struct console *con, int *x, int *y);
18 void con_pushcur(struct console *con);
19 void con_popcur(struct console *con);
20
21 void con_putchar(struct console *con, int c);
22
23
24 #endif  /* CON_H_ */