Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 521 → Rev 522

/shark/trunk/drivers/cons/cons1.c
176,13 → 176,14
{
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) {
if (x == (cons_columns-1)) {
x = 0;
if (y == (cons_rows-1)) scroll();
if (y >= (cons_rows-1)) scroll();
else y++;
} else {
scan_x = 0;
191,7 → 192,7
}
break;
case '\n' : x = 0;
if (y == (cons_rows-1)) scroll();
if (y >= (cons_rows-1)) scroll();
else y++;
break;
case '\b' : x--;
200,13 → 201,14
break;
default : lmempokeb((LIN_ADDR)(v + 2*(x + y*cons_columns)),c);
x++;
if (x > cons_columns) {
if (x == (cons_columns-1)) {
x = 0;
if (y == (cons_rows-1)) scroll();
if (y >= (cons_rows-1)) scroll();
else y++;
}
}
place(x,y);
 
}
 
void cputs(char *s)
219,5 → 221,3
}
 
}