From 3d811d279971eedb51e1701e987583629c28ae33 Mon Sep 17 00:00:00 2001 From: Amlal Date: Thu, 25 Jul 2024 09:50:39 +0200 Subject: [IMP] Use green for debug kernel output. Signed-off-by: Amlal --- Kernel/HALKit/AMD64/HalDebugOutput.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Kernel') diff --git a/Kernel/HALKit/AMD64/HalDebugOutput.cxx b/Kernel/HALKit/AMD64/HalDebugOutput.cxx index eed8b60d..c652aa80 100644 --- a/Kernel/HALKit/AMD64/HalDebugOutput.cxx +++ b/Kernel/HALKit/AMD64/HalDebugOutput.cxx @@ -76,6 +76,17 @@ namespace Kernel SizeT index = 0; SizeT len = rt_string_len(bytes, 256); + const auto cColor = "\x1b[1;32m"; + SizeT lenClr = rt_string_len(cColor, 256); + + while (index < lenClr) + { + HAL::Out8(Detail::PORT, cColor[index]); + ++index; + } + + index = 0; + while (index < len) { if (bytes[index] == '\r') -- cgit v1.2.3