From: John Hodge Date: Sun, 16 Feb 2014 03:59:15 +0000 (+0800) Subject: Usermode/libreadline - Fix backspace X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=4e565693a59be0da434790ec32a97596732f6ee4;p=tpg%2Facess2.git Usermode/libreadline - Fix backspace --- diff --git a/Usermode/Libraries/libreadline.so_src/main.c b/Usermode/Libraries/libreadline.so_src/main.c index 45669355..5937c6bd 100644 --- a/Usermode/Libraries/libreadline.so_src/main.c +++ b/Usermode/Libraries/libreadline.so_src/main.c @@ -282,7 +282,7 @@ int Readline_int_ParseCharacter(tReadline *Info, char *Input) case '\b': if(Info->BufferWritePos <= 0) break; // Protect against underflows // Write the backsapce - _SysWrite(STDOUT_FD, &ch, 1); + _SysWrite(STDOUT_FD, "\b \b", 3); if(Info->BufferWritePos == Info->BufferUsed) // Simple case: End of string { Info->BufferUsed --;