mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +00:00
Terminal: Fix broken parsing of background color escape.
This commit is contained in:
parent
356abbb7ee
commit
642e2447c9
Notes:
sideshowbarker
2024-07-19 15:52:37 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/642e2447c99
1 changed files with 2 additions and 1 deletions
|
@ -184,7 +184,7 @@ void Terminal::escape$m(const Vector<unsigned>& 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<unsigned>& 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, ' ');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue