mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
LibVT: Rename escape$r to DECSTBM (Set Top and Bottom Margins)
This commit is contained in:
parent
79f88db6fb
commit
3549623dc6
2 changed files with 5 additions and 4 deletions
|
@ -275,8 +275,9 @@ void Terminal::escape$t(const ParamVector& params)
|
|||
dbgprintf("FIXME: escape$t: Ps: %u (param count: %d)\n", params[0], params.size());
|
||||
}
|
||||
|
||||
void Terminal::escape$r(const ParamVector& params)
|
||||
void Terminal::DECSTBM(const ParamVector& params)
|
||||
{
|
||||
// DECSTBM – Set Top and Bottom Margins ("Scrolling Region")
|
||||
unsigned top = 1;
|
||||
unsigned bottom = m_rows;
|
||||
if (params.size() >= 1)
|
||||
|
@ -284,7 +285,7 @@ void Terminal::escape$r(const ParamVector& params)
|
|||
if (params.size() >= 2)
|
||||
bottom = params[1];
|
||||
if ((bottom - top) < 2 || bottom > m_rows) {
|
||||
dbgprintf("Error: escape$r: scrolling region invalid: %u-%u\n", top, bottom);
|
||||
dbgprintf("Error: DECSTBM: scrolling region invalid: %u-%u\n", top, bottom);
|
||||
return;
|
||||
}
|
||||
m_scroll_region_top = top - 1;
|
||||
|
@ -688,7 +689,7 @@ void Terminal::execute_escape_sequence(u8 final)
|
|||
escape$t(params);
|
||||
break;
|
||||
case 'r':
|
||||
escape$r(params);
|
||||
DECSTBM(params);
|
||||
break;
|
||||
case 'l':
|
||||
RM(question_param, params);
|
||||
|
|
|
@ -167,7 +167,7 @@ private:
|
|||
void escape$s(const ParamVector&);
|
||||
void escape$u(const ParamVector&);
|
||||
void escape$t(const ParamVector&);
|
||||
void escape$r(const ParamVector&);
|
||||
void DECSTBM(const ParamVector&);
|
||||
void escape$S(const ParamVector&);
|
||||
void escape$T(const ParamVector&);
|
||||
void escape$L(const ParamVector&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue