mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
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.
This commit is contained in:
parent
81b21504a7
commit
499a59ed86
Notes:
sideshowbarker
2024-07-18 22:05:59 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/499a59ed861
1 changed files with 5 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue