From 642e2447c99db6e10b625d9899336c7fea8d59ec Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 4 Feb 2019 10:22:47 +0100 Subject: [PATCH] Terminal: Fix broken parsing of background color escape. --- Terminal/Terminal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Terminal/Terminal.cpp b/Terminal/Terminal.cpp index 0fd39e7c256..1f625a390e2 100644 --- a/Terminal/Terminal.cpp +++ b/Terminal/Terminal.cpp @@ -184,7 +184,7 @@ void Terminal::escape$m(const Vector& params) case 46: case 47: // Background color - m_current_attribute.background_color = param - 30; + m_current_attribute.background_color = param - 40; break; } } @@ -271,6 +271,7 @@ void Terminal::escape$K(const Vector& params) mode = params[0]; switch (mode) { case 0: + // Clear from cursor to end of line. for (int i = m_cursor_column; i < m_columns; ++i) { put_character_at(m_cursor_row, i, ' '); }