mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibVT: Rename escape$A to CUU (Cursor Up)
This commit is contained in:
parent
5e47508672
commit
cc73284c64
Notes:
sideshowbarker
2024-07-19 09:48:09 +09:00
Author: https://github.com/linusg 🔰 Commit: https://github.com/SerenityOS/serenity/commit/cc73284c64a Pull-request: https://github.com/SerenityOS/serenity/pull/1137 Reviewed-by: https://github.com/awesomekling
2 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -148,7 +148,7 @@ private:
|
|||
|
||||
void emit_string(const StringView&);
|
||||
|
||||
void escape$A(const ParamVector&);
|
||||
void CUU(const ParamVector&);
|
||||
void escape$B(const ParamVector&);
|
||||
void escape$C(const ParamVector&);
|
||||
void escape$D(const ParamVector&);
|
||||
|
|
Loading…
Add table
Reference in a new issue