diff options
author | Michael Brown | 2017-06-13 12:54:41 +0200 |
---|---|---|
committer | Michael Brown | 2017-06-13 12:54:41 +0200 |
commit | 1fdf4dddbd6fa2329138e4374c46bbca1ad264c6 (patch) | |
tree | 669595e61ac4b7dc97c53f70774b1281cef483d1 /src/core | |
parent | [acpi] Expose ACPI tables via settings mechanism (diff) | |
download | ipxe-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.c | 7 |
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; |