34 #ifndef CTK_CONSOLE_H_
35 #define CTK_CONSOLE_H_
37 #define cputc console_cputc
38 #define cputs console_cputs
40 void console_init(
void);
41 void console_exit(
void);
42 unsigned char console_resize(
void);
44 unsigned char wherex(
void);
45 unsigned char wherey(
void);
47 void bgcolor(
unsigned char c);
48 void bordercolor(
unsigned char c);
49 void screensize(
unsigned char *x,
unsigned char *y);
50 void revers(
unsigned char c);
51 void console_cputc(
char c);
52 void console_cputs(
char *str);
53 void cclear(
unsigned char length);
54 void chline(
unsigned char length);
55 void cvline(
unsigned char length);
56 void gotoxy(
unsigned char x,
unsigned char y);
57 void cclearxy(
unsigned char x,
unsigned char y,
unsigned char length);
58 void chlinexy(
unsigned char x,
unsigned char y,
unsigned char length);
59 void cvlinexy(
unsigned char x,
unsigned char y,
unsigned char length);
60 void cputsxy(
unsigned char x,
unsigned char y,
char *str);
61 void cputcxy(
unsigned char x,
unsigned char y,
char c);
62 void textcolor(
unsigned char c);
unsigned char ctk_arch_keyavail(void)
Check if there is a keypress in the keyboard input queue.
ctk_arch_key_t ctk_arch_getkey(void)
Get a keypress from the keyboard input queue.