summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lineconsole.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/lineconsole.c b/src/core/lineconsole.c
index bb3bfafc..0a72d143 100644
--- a/src/core/lineconsole.c
+++ b/src/core/lineconsole.c
@@ -47,6 +47,13 @@ size_t line_putchar ( struct line_console *line, int character ) {
if ( character < 0 )
return 0;
+ /* Handle backspace characters */
+ if ( character == '\b' ) {
+ if ( line->index )
+ line->index--;
+ return 0;
+ }
+
/* Ignore carriage return */
if ( character == '\r' )
return 0;