void k_initStartBar(){ sbar.menu_opened = 0; k_enableSbar(); memset(&sbar.firstline, ' ', 80); sbar.firstline[80] = 0; memset(&sbar.secondline, '_', 80); sbar.secondline[80] = 0; memcpy(&sbar.firstline, &START_LOGO, strlen(START_LOGO)); memcpy(&sbar.firstline[67], get_time(), 13); k_printWithColor(sbar.firstline, CHAR_COLOR_BLACK); k_printWithColor(sbar.secondline, CHAR_COLOR_BLACK); return; }
void k_showLoadingScreen(){ /* Prepare screen to show the loading screen */ char color = CHAR_COLOR_DARK_GREY; clearFullScreen(); setFullBackgroundColor(BACKGROUND_COLOR_BLACK); k_printWithColor("\n", color); k_printWithColor(" $$$$$$ $$$$$$\n", color); k_printWithColor(" $$ $$ $$ $$\n", color); k_printWithColor(" $$$$$$ $$ $$ $$ \n", color); k_printWithColor(" $$ $$ $$ $$$$$$\n", color); k_printWithColor(" $$$$$$ $$ $$ $$\n", color); k_printWithColor(" $$ $$ $$ $$ $$ $$\n", color); k_printWithColor(" $$$$$$ $$$$$$ $$$$$$\n", color); k_printWithColor("\n ", color); k_printWithColor(OS_NAME, color); k_printWithColor(" is loading\n", color); set_vga_size(12, 25); setCharacterColor(CHAR_COLOR_WHITE); return; }
void k_printalert(char* s){ k_printWithColor(s, CHAR_COLOR_LIGHT_BROWN); return; }
void k_printerror(char* s){ k_printWithColor(s, CHAR_COLOR_RED); return; }
void k_printwarning(char* s){ k_printWithColor(s, CHAR_COLOR_GREEN); return; }
void k_printSuccess(char* s){ k_printWithColor(s, CHAR_COLOR_GREEN); return; }