33 #ifndef CTK_CONSOLE_H_
34 #define CTK_CONSOLE_H_
36 #define cputc console_cputc
37 #define cputs console_cputs
39 void console_init(
void);
40 void console_exit(
void);
41 unsigned char console_resize(
void);
43 unsigned char wherex(
void);
44 unsigned char wherey(
void);
46 void bgcolor(
unsigned char c);
47 void bordercolor(
unsigned char c);
48 void screensize(
unsigned char *x,
unsigned char *y);
49 void revers(
unsigned char c);
50 void console_cputc(
char c);
51 void console_cputs(
char *str);
52 void cclear(
unsigned char length);
53 void chline(
unsigned char length);
54 void cvline(
unsigned char length);
55 void gotoxy(
unsigned char x,
unsigned char y);
56 void cclearxy(
unsigned char x,
unsigned char y,
unsigned char length);
57 void chlinexy(
unsigned char x,
unsigned char y,
unsigned char length);
58 void cvlinexy(
unsigned char x,
unsigned char y,
unsigned char length);
59 void cputsxy(
unsigned char x,
unsigned char y,
char *str);
60 void cputcxy(
unsigned char x,
unsigned char y,
char c);
61 void textcolor(
unsigned char c);