--- nono/lib/textscreen.cpp 2026/04/29 17:04:54 1.1.1.7 +++ nono/lib/textscreen.cpp 2026/04/29 17:04:57 1.1.1.8 @@ -72,16 +72,17 @@ TextScreen::ScrollUp() void TextScreen::Putc(uint16 ch) { - if (OutOfScreen) { + if (ch == '\n') { + CRLF(); return; } - if (ch == '\n') { - CRLF(); - } else { - textbuf[(Y * col) + X] = ch; - Ascend(); + if (OutOfScreen) { + return; } + + textbuf[(Y * col) + X] = ch; + Ascend(); } // 現在のカーソル位置の文字を取得