Update screen.c

pull/190/head
MainSilent 4 years ago committed by GitHub
parent a0677c643c
commit d2493caa90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
}
}

Loading…
Cancel
Save