summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibVT
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-20 17:03:35 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-20 17:04:46 +0100
commit499a59ed861ec228df95f3d17e3d4d3676151cd0 (patch)
treee9d8bfe03aa93e262570565b54b516a4a09e7af5 /Userland/Libraries/LibVT
parent81b21504a7ba1188a735e7ed4a983eeb79df05aa (diff)
downloadserenity-499a59ed861ec228df95f3d17e3d4d3676151cd0.zip
LibVT: Put "unimplemented escape" whining on debug log
I'm not sure why we were injecting these debug messages into the terminal output, but it makes a big mess for no benefit.
Diffstat (limited to 'Userland/Libraries/LibVT')
-rw-r--r--Userland/Libraries/LibVT/Terminal.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/Userland/Libraries/LibVT/Terminal.cpp b/Userland/Libraries/LibVT/Terminal.cpp
index ed06b6bab1..51a2b6759f 100644
--- a/Userland/Libraries/LibVT/Terminal.cpp
+++ b/Userland/Libraries/LibVT/Terminal.cpp
@@ -1104,25 +1104,23 @@ void Terminal::handle_key_press(KeyCode key, u32 code_point, u8 flags)
void Terminal::unimplemented_escape()
{
StringBuilder builder;
- builder.appendf("((Unimplemented escape: %c", m_final);
+ builder.appendff("Unimplemented escape: {:c}", m_final);
if (!m_parameters.is_empty()) {
- builder.append(" parameters:");
+ builder.append(", parameters:");
for (size_t i = 0; i < m_parameters.size(); ++i)
builder.append((char)m_parameters[i]);
}
if (!m_intermediates.is_empty()) {
- builder.append(" intermediates:");
+ builder.append(", intermediates:");
for (size_t i = 0; i < m_intermediates.size(); ++i)
builder.append((char)m_intermediates[i]);
}
- builder.append("))");
- inject_string(builder.to_string());
+ dbgln(builder.string_view());
}
void Terminal::unimplemented_xterm_escape()
{
- auto message = String::format("((Unimplemented xterm escape: %c))\n", m_final);
- inject_string(message);
+ dbgln("Unimplemented xterm escape: {:c}", m_final);
}
void Terminal::set_size(u16 columns, u16 rows)