Add support for \t

This commit is contained in:
Baptiste Wicht 2013-10-29 20:05:31 +01:00
parent 08ee4d03ac
commit b3280a1bee
2 changed files with 8 additions and 8 deletions

View File

@ -79,15 +79,15 @@ void k_print(char key){
if(key == '\n'){
++current_line;
current_column = 0;
} else if(key == '\t'){
k_print(" ");
} else {
uint16_t* vga_buffer = (uint16_t*) 0x0B8000;
return;
vga_buffer[current_line * 80 + current_column] = make_vga_entry(key, make_color(WHITE, BLACK));
++current_column;
}
uint16_t* vga_buffer = (uint16_t*) 0x0B8000;
vga_buffer[current_line * 80 + current_column] = make_vga_entry(key, make_color(WHITE, BLACK));
++current_column;
}
void k_print(const char* string){

View File

@ -86,7 +86,7 @@ void help_command(){
k_print("Available commands:\n");
for(auto& command : commands){
k_print(" ");
k_print('\t');
k_print_line(command.name);
}
}