Skip to content

Commit

Permalink
Get consoleintr back on one page
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Clements committed Sep 2, 2010
1 parent 08eef9e commit 8440dbf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions console.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,18 +198,15 @@ consoleintr(int (*getc)(void))
consputc(BACKSPACE);
}
break;
case C('H'): // Backspace
case '\x7f':
case C('H'): case '\x7f': // Backspace
if(input.e != input.w){
input.e--;
consputc(BACKSPACE);
}
break;
default:
if(c != 0 && input.e-input.r < INPUT_BUF){
// The serial port produces 0x13, not 0x10
if(c == '\r')
c = '\n';
c = (c == '\r') ? '\n' : c;
input.buf[input.e++ % INPUT_BUF] = c;
consputc(c);
if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){
Expand Down

0 comments on commit 8440dbf

Please sign in to comment.