1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

Libraries: Unbreak building with extra debug macros

This commit is contained in:
Ben Wiederhake 2020-08-27 00:34:59 +02:00 committed by Andreas Kling
parent 081bb29626
commit d8e22fedc3
8 changed files with 23 additions and 17 deletions

View file

@ -706,8 +706,12 @@ void Terminal::execute_escape_sequence(u8 final)
dbgprintf("\n");
for (auto& line : m_lines) {
dbgprintf("Terminal: Line: ");
for (int i = 0; i < line.m_length; i++) {
dbgprintf("%c", line.characters[i]);
for (int i = 0; i < line.length(); i++) {
u32 codepoint = line.code_point(i);
if (codepoint < 128)
dbgprintf("%c", (char)codepoint);
else
dbgprintf("<U+%04x>", codepoint);
}
dbgprintf("\n");
}