Skip to content
Permalink
Browse files

[syslog] Handle backspace characters

Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Jun 13, 2017
1 parent 356f6c1 commit 1fdf4dddbd6fa2329138e4374c46bbca1ad264c6
Showing with 7 additions and 0 deletions.
  1. +7 −0 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;

0 comments on commit 1fdf4dd

Please sign in to comment.
You can’t perform that action at this time.