summaryrefslogtreecommitdiff
path: root/Libraries/LibVT
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-01-26 13:39:30 +0000
committerAndreas Kling <kling@serenityos.org>2020-01-26 15:58:06 +0100
commit5cdfc5824261d4d61f0885898affc7aa5660da7b (patch)
tree95e268c6abc9dee29ffb6374a200a59d8510f469 /Libraries/LibVT
parent428a55a196194465f79423085b629bf7218d4964 (diff)
downloadserenity-5cdfc5824261d4d61f0885898affc7aa5660da7b.zip
LibVT: Rename escape$D to CUB (Cursor Backward)
Diffstat (limited to 'Libraries/LibVT')
-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 174b05e53c..2c53e52fee 100644
--- a/Libraries/LibVT/Terminal.cpp
+++ b/Libraries/LibVT/Terminal.cpp
@@ -344,8 +344,9 @@ void Terminal::CUF(const ParamVector& params)
set_cursor(m_cursor_row, new_column);
}
-void Terminal::escape$D(const ParamVector& params)
+void Terminal::CUB(const ParamVector& params)
{
+ // CUB – Cursor Backward
int num = 1;
if (params.size() >= 1)
num = params[0];
@@ -622,7 +623,7 @@ void Terminal::execute_escape_sequence(u8 final)
CUF(params);
break;
case 'D':
- escape$D(params);
+ CUB(params);
break;
case 'H':
escape$H(params);
diff --git a/Libraries/LibVT/Terminal.h b/Libraries/LibVT/Terminal.h
index 5ef1fda7eb..b36706f0f1 100644
--- a/Libraries/LibVT/Terminal.h
+++ b/Libraries/LibVT/Terminal.h
@@ -151,7 +151,7 @@ private:
void CUU(const ParamVector&);
void CUD(const ParamVector&);
void CUF(const ParamVector&);
- void escape$D(const ParamVector&);
+ void CUB(const ParamVector&);
void escape$H(const ParamVector&);
void ED(const ParamVector&);
void EL(const ParamVector&);