176,14 → 176,13 |
{ |
static unsigned short scan_x,x,y; |
LIN_ADDR v = (LIN_ADDR)(0xB8000 + active_page*(2*PAGE_SIZE)); |
|
x = bios_x; |
y = bios_y; |
switch (c) { |
case '\t' : x += 8; |
if (x == (cons_columns-1)) { |
if (x >= cons_columns) { |
x = 0; |
if (y >= (cons_rows-1)) scroll(); |
if (y == (cons_rows-1)) scroll(); |
else y++; |
} else { |
scan_x = 0; |
192,7 → 191,7 |
} |
break; |
case '\n' : x = 0; |
if (y >= (cons_rows-1)) scroll(); |
if (y == (cons_rows-1)) scroll(); |
else y++; |
break; |
case '\b' : x--; |
201,14 → 200,13 |
break; |
default : lmempokeb((LIN_ADDR)(v + 2*(x + y*cons_columns)),c); |
x++; |
if (x == (cons_columns-1)) { |
if (x > cons_columns) { |
x = 0; |
if (y >= (cons_rows-1)) scroll(); |
if (y == (cons_rows-1)) scroll(); |
else y++; |
} |
} |
place(x,y); |
|
} |
|
void cputs(char *s) |
221,3 → 219,5 |
} |
|
} |
|
|