Usermode/libreadline - Fix backspace
authorJohn Hodge <[email protected]>
Sun, 16 Feb 2014 03:59:15 +0000 (11:59 +0800)
committerJohn Hodge <[email protected]>
Sun, 16 Feb 2014 03:59:15 +0000 (11:59 +0800)
Usermode/Libraries/libreadline.so_src/main.c

index 4566935..5937c6b 100644 (file)
@@ -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 --;

UCC git Repository :: git.ucc.asn.au