|
|
|
@ -44,11 +44,13 @@ void kprint(char *message) {
|
|
|
|
|
kprint_at(message, -1, -1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void kprint_backspace() {
|
|
|
|
|
int offset = get_cursor_offset()-2;
|
|
|
|
|
int row = get_offset_row(offset);
|
|
|
|
|
int col = get_offset_col(offset);
|
|
|
|
|
print_char(0x08, col, row, WHITE_ON_BLACK);
|
|
|
|
|
void kprint_backspace(char key_buffer[256]) {
|
|
|
|
|
if (strlen(key_buffer) != 0) {
|
|
|
|
|
int offset = get_cursor_offset()-2;
|
|
|
|
|
int row = get_offset_row(offset);
|
|
|
|
|
int col = get_offset_col(offset);
|
|
|
|
|
print_char(0x08, col, row, WHITE_ON_BLACK);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|