mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:27:34 +00:00
Terminal: <esc>[m should clear the current attribute.
This was causing GCC error messages to appear in all-red text.
This commit is contained in:
parent
98a0e10319
commit
a274196bd7
1 changed files with 4 additions and 0 deletions
|
@ -138,6 +138,10 @@ static inline Color lookup_color(unsigned color)
|
|||
|
||||
void Terminal::escape$m(const ParamVector& params)
|
||||
{
|
||||
if (params.is_empty()) {
|
||||
m_current_attribute.reset();
|
||||
return;
|
||||
}
|
||||
if (params.size() == 3 && params[1] == 5) {
|
||||
if (params[0] == 38) {
|
||||
m_current_attribute.foreground_color = params[2];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue