LibVT: Rename escape$B to CUD (Cursor Down)

This commit is contained in:
Linus Groh 2020-01-26 13:35:39 +00:00 committed by Andreas Kling
parent cc73284c64
commit 35310dbd22
Notes: sideshowbarker 2024-07-19 09:48:02 +09:00
2 changed files with 5 additions and 4 deletions

View File

@ -316,8 +316,9 @@ void Terminal::CUU(const ParamVector& params)
set_cursor(new_row, m_cursor_column);
}
void Terminal::escape$B(const ParamVector& params)
void Terminal::CUD(const ParamVector& params)
{
// CUD Cursor Down
int num = 1;
if (params.size() >= 1)
num = params[0];
@ -614,7 +615,7 @@ void Terminal::execute_escape_sequence(u8 final)
CUU(params);
break;
case 'B':
escape$B(params);
CUD(params);
break;
case 'C':
escape$C(params);
@ -778,7 +779,7 @@ void Terminal::NEL()
void Terminal::IND()
{
// IND - Index (move down)
escape$B({});
CUD({});
}
void Terminal::RI()

View File

@ -149,7 +149,7 @@ private:
void emit_string(const StringView&);
void CUU(const ParamVector&);
void escape$B(const ParamVector&);
void CUD(const ParamVector&);
void escape$C(const ParamVector&);
void escape$D(const ParamVector&);
void escape$H(const ParamVector&);