mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-18 01:01:57 -04:00
Add support for \t
This commit is contained in:
parent
08ee4d03ac
commit
b3280a1bee
@ -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){
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user