aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/vcons/vcons_io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/vcons/vcons_io.c b/sys/dev/vcons/vcons_io.c
index 4c0151a..f4e693e 100644
--- a/sys/dev/vcons/vcons_io.c
+++ b/sys/dev/vcons/vcons_io.c
@@ -69,6 +69,12 @@ vcons_process_output(struct vcons_screen *scr, int c)
case ASCII_HT:
vcons_expand_tab(scr);
break;
+ case ASCII_BS:
+ if (cursor->xpos > 0) {
+ scr->cpy_x--;
+ cursor->xpos -= FONT_WIDTH;
+ }
+ break;
default:
return -1;
}