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

LibVT: Rename escape$H to CUP (Cursor Position)

This commit is contained in:
Linus Groh 2020-01-26 13:42:00 +00:00 committed by Andreas Kling
parent 5cdfc58242
commit 296afbe624
2 changed files with 4 additions and 3 deletions

View file

@ -279,8 +279,9 @@ void Terminal::escape$r(const ParamVector& params)
set_cursor(0, 0);
}
void Terminal::escape$H(const ParamVector& params)
void Terminal::CUP(const ParamVector& params)
{
// CUP Cursor Position
unsigned row = 1;
unsigned col = 1;
if (params.size() >= 1)
@ -626,7 +627,7 @@ void Terminal::execute_escape_sequence(u8 final)
CUB(params);
break;
case 'H':
escape$H(params);
CUP(params);
break;
case 'J':
ED(params);