Kernel/Terminal: Add support for bracketed paste mode

This gets rid of annoying warnings when running some programs like bash
This commit is contained in:
2025-11-18 03:07:54 +02:00
parent 8f6cb9c057
commit db7ffcf9d5
3 changed files with 29 additions and 3 deletions

View File

@@ -417,6 +417,11 @@ namespace Kernel
m_cursor_shown = (ch == 'h');
return reset_ansi();
}
if (m_ansi_state.question && m_ansi_state.nums[0] == 2004)
{
// bracketed paste mode, there is no pasting so this is a no-op
return reset_ansi();
}
reset_ansi();
dprintln_if(DEBUG_VTTY, "Unsupported ANSI CSI character {}", static_cast<char>(ch));
return;