diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2020-08-27 00:34:59 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-30 09:43:49 +0200 |
commit | d8e22fedc341a48effaf53de1f3e9f79ae573104 (patch) | |
tree | dfd019e48bf364181b3f6b11250c1df38283e2f0 /Libraries/LibVT | |
parent | 081bb2962675cdf8994633906c73328a605baa02 (diff) | |
download | serenity-d8e22fedc341a48effaf53de1f3e9f79ae573104.zip |
Libraries: Unbreak building with extra debug macros
Diffstat (limited to 'Libraries/LibVT')
-rw-r--r-- | Libraries/LibVT/Terminal.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Libraries/LibVT/Terminal.cpp b/Libraries/LibVT/Terminal.cpp index 9ec0e61e2b..bc49f82562 100644 --- a/Libraries/LibVT/Terminal.cpp +++ b/Libraries/LibVT/Terminal.cpp @@ -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"); } |