diff options
| author | Amlal <amlal@zka.com> | 2024-07-25 09:50:39 +0200 |
|---|---|---|
| committer | Amlal <amlal@zka.com> | 2024-07-25 09:51:04 +0200 |
| commit | 3d811d279971eedb51e1701e987583629c28ae33 (patch) | |
| tree | fdc7f665caa34255e70b171ff6023ea20c01f3a6 | |
| parent | 43981bf8ecacb5f95070fa4ff502941d9e3251b4 (diff) | |
[IMP] Use green for debug kernel output.
Signed-off-by: Amlal <amlal@zka.com>
| -rw-r--r-- | Kernel/HALKit/AMD64/HalDebugOutput.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
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') |
