Skip to content
Snippets Groups Projects
Commit 08eef9ea authored by Austin Clements's avatar Austin Clements
Browse files

Get cgaputc and consputc back on the same page

parent 5bf11c50
No related branches found
No related tags found
No related merge requests found
......@@ -136,8 +136,7 @@ cgaputc(int c)
if(c == '\n')
pos += 80 - pos%80;
else if(c == BACKSPACE){
if(pos > 0)
crt[--pos] = ' ' | 0x0700;
if(pos > 0) --pos;
} else
crt[pos++] = (c&0xff) | 0x0700; // black on white
......@@ -164,15 +163,12 @@ consputc(int c)
}
if(c == BACKSPACE){
uartputc('\b');
uartputc(' ');
uartputc('\b');
uartputc('\b'); uartputc(' '); uartputc('\b');
} else
uartputc(c);
cgaputc(c);
}
//PAGEBREAK: 50
#define INPUT_BUF 128
struct {
struct spinlock lock;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment