mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibVT: Rename escape$m to SGR (Select Graphic Rendition)
This commit is contained in:
parent
296afbe624
commit
dcb5bf9e50
Notes:
sideshowbarker
2024-07-19 09:47:37 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/dcb5bf9e500 Pull-request: https://github.com/SerenityOS/serenity/pull/1137 Reviewed-by: https://github.com/awesomekling
2 changed files with 5 additions and 4 deletions
|
@ -153,8 +153,9 @@ void Terminal::escape$h_l(bool should_set, bool question_param, const ParamVecto
|
|||
}
|
||||
}
|
||||
|
||||
void Terminal::escape$m(const ParamVector& params)
|
||||
void Terminal::SGR(const ParamVector& params)
|
||||
{
|
||||
// SGR – Select Graphic Rendition
|
||||
if (params.is_empty()) {
|
||||
m_current_attribute.reset();
|
||||
return;
|
||||
|
@ -239,7 +240,7 @@ void Terminal::escape$m(const ParamVector& params)
|
|||
m_current_attribute.background_color = Attribute::default_background_color;
|
||||
break;
|
||||
default:
|
||||
dbgprintf("FIXME: escape$m: p: %u\n", param);
|
||||
dbgprintf("FIXME: SGR: p: %u\n", param);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -663,7 +664,7 @@ void Terminal::execute_escape_sequence(u8 final)
|
|||
escape$d(params);
|
||||
break;
|
||||
case 'm':
|
||||
escape$m(params);
|
||||
SGR(params);
|
||||
break;
|
||||
case 's':
|
||||
escape$s(params);
|
||||
|
|
|
@ -161,7 +161,7 @@ private:
|
|||
void escape$X(const ParamVector&);
|
||||
void escape$b(const ParamVector&);
|
||||
void escape$d(const ParamVector&);
|
||||
void escape$m(const ParamVector&);
|
||||
void SGR(const ParamVector&);
|
||||
void escape$s(const ParamVector&);
|
||||
void escape$u(const ParamVector&);
|
||||
void escape$t(const ParamVector&);
|
||||
|
|
Loading…
Add table
Reference in a new issue