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