1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:07:34 +00:00

LibVT: Rename escape$A to CUU (Cursor Up)

This commit is contained in:
Linus Groh 2020-01-26 13:33:27 +00:00 committed by Andreas Kling
parent 5e47508672
commit cc73284c64
2 changed files with 5 additions and 4 deletions

View file

@ -302,8 +302,9 @@ void Terminal::escape$f(const ParamVector& params)
set_cursor(row - 1, col - 1);
}
void Terminal::escape$A(const ParamVector& params)
void Terminal::CUU(const ParamVector& params)
{
// CUU Cursor Up
int num = 1;
if (params.size() >= 1)
num = params[0];
@ -610,7 +611,7 @@ void Terminal::execute_escape_sequence(u8 final)
switch (final) {
case 'A':
escape$A(params);
CUU(params);
break;
case 'B':
escape$B(params);
@ -783,7 +784,7 @@ void Terminal::IND()
void Terminal::RI()
{
// RI - Reverse Index (move up)
escape$A({});
CUU({});
}
void Terminal::on_char(u8 ch)