From 099f6131d1e11c4c52369dc1b561c51e323aadd0 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 26 Apr 2023 20:42:08 +0200 Subject: [PATCH] kernel: Avoid printing control characters that we don't have a special meaning for --- kernel/src/video/TextConsole.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/src/video/TextConsole.cpp b/kernel/src/video/TextConsole.cpp index dfb9b440..dd8d0d17 100644 --- a/kernel/src/video/TextConsole.cpp +++ b/kernel/src/video/TextConsole.cpp @@ -2,6 +2,7 @@ #include "boot/bootboot.h" #include "video/Framebuffer.h" #include +#include #include #include #include @@ -109,6 +110,7 @@ namespace TextConsole } break; default: { + if (_iscntrl(c)) return; putwchar_at(c, g_x_position, g_y_position); next_char(); if (at_end_of_screen())