forked from AbleOS/ableos
ok seriously fucking wokks ok im sorry sanananana
This commit is contained in:
parent
7c16edea54
commit
be2b6dfa94
|
@ -43,13 +43,13 @@ impl Term {
|
||||||
match c {
|
match c {
|
||||||
'\u{08}' => {
|
'\u{08}' => {
|
||||||
if self.x == 0 {
|
if self.x == 0 {
|
||||||
warn!("IMPOSSIBLE BACKSPACE");
|
// trace!("IMPOSSIBLE BACKSPACE");
|
||||||
} else {
|
return;
|
||||||
trace!("BACKSPACE");
|
}
|
||||||
|
// trace!("BACKSPACE");
|
||||||
self.x -= 1;
|
self.x -= 1;
|
||||||
self.term[TERM_MINUS_ONE_LINE + (self.x as usize)] = '\0';
|
self.term[TERM_MINUS_ONE_LINE + (self.x as usize)] = '\0';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
'\n' => {
|
'\n' => {
|
||||||
self.move_up();
|
self.move_up();
|
||||||
self.x = 0;
|
self.x = 0;
|
||||||
|
|
Loading…
Reference in a new issue