mirror of https://github.com/ipxe/ipxe.git
[syslog] Handle backspace characters
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/49/merge
parent
356f6c1b64
commit
1fdf4dddbd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue