summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMichael Brown2017-06-13 12:54:41 +0200
committerMichael Brown2017-06-13 12:54:41 +0200
commit1fdf4dddbd6fa2329138e4374c46bbca1ad264c6 (patch)
tree669595e61ac4b7dc97c53f70774b1281cef483d1 /src/core
parent[acpi] Expose ACPI tables via settings mechanism (diff)
downloadipxe-1fdf4dddbd6fa2329138e4374c46bbca1ad264c6.tar.gz
ipxe-1fdf4dddbd6fa2329138e4374c46bbca1ad264c6.tar.xz
ipxe-1fdf4dddbd6fa2329138e4374c46bbca1ad264c6.zip
[syslog] Handle backspace characters
Signed-off-by: Michael Brown <mcb30@ipxe.org>
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;