summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
nits
Diffstat (limited to 'console.c')
-rw-r--r--console.c5
1 files changed, 1 insertions, 4 deletions
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;