mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibVT: Rename escape$H to CUP (Cursor Position)
This commit is contained in:
parent
5cdfc58242
commit
296afbe624
Notes:
sideshowbarker
2024-07-19 09:47:43 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/296afbe624c Pull-request: https://github.com/SerenityOS/serenity/pull/1137 Reviewed-by: https://github.com/awesomekling
2 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -152,7 +152,7 @@ private:
|
|||
void CUD(const ParamVector&);
|
||||
void CUF(const ParamVector&);
|
||||
void CUB(const ParamVector&);
|
||||
void escape$H(const ParamVector&);
|
||||
void CUP(const ParamVector&);
|
||||
void ED(const ParamVector&);
|
||||
void EL(const ParamVector&);
|
||||
void escape$M(const ParamVector&);
|
||||
|
|
Loading…
Add table
Reference in a new issue