fixed line wrapping
This commit is contained in:
parent
30855b250e
commit
efa5e16ea4
1 changed files with 4 additions and 1 deletions
|
@ -28,7 +28,10 @@ auto TTY::putChar(int c) -> void {
|
||||||
default:
|
default:
|
||||||
plotChar(x, y, c);
|
plotChar(x, y, c);
|
||||||
x++;
|
x++;
|
||||||
if (x > width) y++;
|
if (x > width) {
|
||||||
|
y++;
|
||||||
|
x = 0;
|
||||||
|
}
|
||||||
if (y >= height) scroll();
|
if (y >= height) scroll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue