LibVT: Rename escape$K and escape$J to EL and ED respectively

We should rename all of these functions to match the real VT100 names.
This will make it 100% easier to work on LibVT.

For reference: https://vt100.net/docs/vt100-ug/
This commit is contained in:
Andreas Kling 2020-01-25 20:53:27 +01:00
parent 4ed5c13792
commit 8c1f2d7131
Notes: sideshowbarker 2024-07-19 09:49:32 +09:00
2 changed files with 7 additions and 6 deletions

View file

@ -397,7 +397,7 @@ void Terminal::escape$X(const ParamVector& params)
}
}
void Terminal::escape$K(const ParamVector& params)
void Terminal::EL(const ParamVector& params)
{
int mode = 0;
if (params.size() >= 1)
@ -427,8 +427,9 @@ void Terminal::escape$K(const ParamVector& params)
}
}
void Terminal::escape$J(const ParamVector& params)
void Terminal::ED(const ParamVector& params)
{
// ED - Erase in Display
int mode = 0;
if (params.size() >= 1)
mode = params[0];
@ -624,10 +625,10 @@ void Terminal::execute_escape_sequence(u8 final)
escape$H(params);
break;
case 'J':
escape$J(params);
ED(params);
break;
case 'K':
escape$K(params);
EL(params);
break;
case 'M':
escape$M(params);

View file

@ -153,8 +153,8 @@ private:
void escape$C(const ParamVector&);
void escape$D(const ParamVector&);
void escape$H(const ParamVector&);
void escape$J(const ParamVector&);
void escape$K(const ParamVector&);
void ED(const ParamVector&);
void EL(const ParamVector&);
void escape$M(const ParamVector&);
void escape$P(const ParamVector&);
void escape$G(const ParamVector&);