fixed line wrapping

This commit is contained in:
Morten Delenk 2017-04-30 18:44:45 +00:00
parent 30855b250e
commit efa5e16ea4

View file

@ -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();
}
}