diff options
author | rsc <rsc> | 2007-08-28 18:23:48 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-08-28 18:23:48 +0000 |
commit | c1b100e93044469de30c634107bc645361cc1a73 (patch) | |
tree | e5e1ead7fa029917abdde9ed0fa9bdb45597d085 /console.c | |
parent | 3e1eaf226d501fc4f57592e1c75c885f8b2e5d99 (diff) | |
download | xv6-labs-c1b100e93044469de30c634107bc645361cc1a73.tar.gz xv6-labs-c1b100e93044469de30c634107bc645361cc1a73.tar.bz2 xv6-labs-c1b100e93044469de30c634107bc645361cc1a73.zip |
nits
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |