From c1b100e93044469de30c634107bc645361cc1a73 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 28 Aug 2007 18:23:48 +0000 Subject: nits --- console.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'console.c') diff --git a/console.c b/console.c index b41262d..d849860 100644 --- a/console.c +++ b/console.c @@ -105,7 +105,7 @@ printint(int xx, int base, int sgn) cons_putc(buf[i]); } -// Print to the input. only understands %d, %x, %p, %s. +// Print to the console. only understands %d, %x, %p, %s. void cprintf(char *fmt, ...) { @@ -200,7 +200,6 @@ console_intr(int (*getc)(void)) case C('P'): // Process listing. procdump(); break; - case C('U'): // Kill line. while(input.e > input.w && input.buf[(input.e-1) % INPUT_BUF] != '\n'){ @@ -208,14 +207,12 @@ console_intr(int (*getc)(void)) cons_putc(BACKSPACE); } break; - case C('H'): // Backspace if(input.e > input.w){ input.e--; cons_putc(BACKSPACE); } break; - default: if(c != 0 && input.e < input.r+INPUT_BUF){ input.buf[input.e++] = c; -- cgit v1.2.3