From efa5e16ea470bcc5bedb09c35739841cfa7107a7 Mon Sep 17 00:00:00 2001 From: Morten Delenk Date: Sun, 30 Apr 2017 18:44:45 +0000 Subject: [PATCH] fixed line wrapping --- kernel/src/tty.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/src/tty.cpp b/kernel/src/tty.cpp index 196f674..7186621 100644 --- a/kernel/src/tty.cpp +++ b/kernel/src/tty.cpp @@ -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(); } }