summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-01-26 13:42:00 +0000
committerAndreas Kling <kling@serenityos.org>2020-01-26 15:58:06 +0100
commit296afbe624c3d0ed8aa63ebfc3464de57fffd005 (patch)
tree08dc7099beb49e0c7fdf5baedeae474de04c0ead /Libraries
parent5cdfc5824261d4d61f0885898affc7aa5660da7b (diff)
downloadserenity-296afbe624c3d0ed8aa63ebfc3464de57fffd005.zip
LibVT: Rename escape$H to CUP (Cursor Position)
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibVT/Terminal.cpp5
-rw-r--r--Libraries/LibVT/Terminal.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/Libraries/LibVT/Terminal.cpp b/Libraries/LibVT/Terminal.cpp
index 2c53e52fee..48986f401e 100644
--- a/Libraries/LibVT/Terminal.cpp
+++ b/Libraries/LibVT/Terminal.cpp
@@ -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);
diff --git a/Libraries/LibVT/Terminal.h b/Libraries/LibVT/Terminal.h
index b36706f0f1..7a8b968584 100644
--- a/Libraries/LibVT/Terminal.h
+++ b/Libraries/LibVT/Terminal.h
@@ -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&);