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:
|
||||
plotChar(x, y, c);
|
||||
x++;
|
||||
if (x > width) y++;
|
||||
if (x > width) {
|
||||
y++;
|
||||
x = 0;
|
||||
}
|
||||
if (y >= height) scroll();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue