]> andersk Git - moira.git/commitdiff
fixed delete & ^U handling in input routine
authormar <mar>
Sun, 14 Aug 1988 20:02:27 +0000 (20:02 +0000)
committermar <mar>
Sun, 14 Aug 1988 20:02:27 +0000 (20:02 +0000)
clients/mailmaint/mailmaint.c

index 9b8df4747b675a52b14169924bb86ce5f4beedeb..1f3b633b547bd620c6cf7ab327ad3475ee1e5ccd 100644 (file)
@@ -894,15 +894,15 @@ Prompt(prompt, buf, buflen, crok)
            if (p > buf) {
                p--;
                x--;
-               Put_message("\b");
-               Put_message(" ");
-               Put_message("\b");
+               printf("\b \b");
            }
            break;
        case CTL('U'):
        case CTL('G'):
        case CTL('['):
            x = oldx;
+           while (p-- > buf)
+               printf("\b \b");
            p = buf;
            break;
        default:
This page took 0.067475 seconds and 5 git commands to generate.