diff options
author | Andreas Kling <kling@serenityos.org> | 2020-01-25 20:53:27 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-01-25 20:54:40 +0100 |
commit | 8c1f2d713172bca788fec4e05cac5e25781a6481 (patch) | |
tree | 4c721d209d101c64ed7e572b9f89210463b25e8b /Libraries/LibVT | |
parent | 4ed5c13792abb4cf3e54f680f08ab7e881ae668f (diff) | |
download | serenity-8c1f2d713172bca788fec4e05cac5e25781a6481.zip |
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/
Diffstat (limited to 'Libraries/LibVT')
-rw-r--r-- | Libraries/LibVT/Terminal.cpp | 9 | ||||
-rw-r--r-- | Libraries/LibVT/Terminal.h | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/Libraries/LibVT/Terminal.cpp b/Libraries/LibVT/Terminal.cpp index 6fad590992..96fd64c8c0 100644 --- a/Libraries/LibVT/Terminal.cpp +++ b/Libraries/LibVT/Terminal.cpp @@ -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); diff --git a/Libraries/LibVT/Terminal.h b/Libraries/LibVT/Terminal.h index b481052f7c..278c603153 100644 --- a/Libraries/LibVT/Terminal.h +++ b/Libraries/LibVT/Terminal.h @@ -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&); |