#include #include "console.h" static int posx=0; static int posy=0; void print_nextline() { int i,x; posx=0; posy++; if(posy>SCR_HEIGHT-2) { for(i=1;i>12); val=val << 4; } } void print_string(char *str) { while(*str!=0) { print_char(posx++,posy,*(str++)); } } void console_clear_screen() { int x,y; for(x=0;x