mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
Update screen.c
This commit is contained in:
parent
a0677c643c
commit
d2493caa90
@ -44,11 +44,13 @@ void kprint(char *message) {
|
|||||||
kprint_at(message, -1, -1);
|
kprint_at(message, -1, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void kprint_backspace() {
|
void kprint_backspace(char key_buffer[256]) {
|
||||||
int offset = get_cursor_offset()-2;
|
if (strlen(key_buffer) != 0) {
|
||||||
int row = get_offset_row(offset);
|
int offset = get_cursor_offset()-2;
|
||||||
int col = get_offset_col(offset);
|
int row = get_offset_row(offset);
|
||||||
print_char(0x08, col, row, WHITE_ON_BLACK);
|
int col = get_offset_col(offset);
|
||||||
|
print_char(0x08, col, row, WHITE_ON_BLACK);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user