From 35310dbd22c4925f14c1a46fb1a18cd414c64f0c Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 26 Jan 2020 13:35:39 +0000 Subject: [PATCH] LibVT: Rename escape$B to CUD (Cursor Down) --- Libraries/LibVT/Terminal.cpp | 7 ++++--- Libraries/LibVT/Terminal.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Libraries/LibVT/Terminal.cpp b/Libraries/LibVT/Terminal.cpp index 306e77bf6bb..489cd9f0513 100644 --- a/Libraries/LibVT/Terminal.cpp +++ b/Libraries/LibVT/Terminal.cpp @@ -316,8 +316,9 @@ void Terminal::CUU(const ParamVector& params) set_cursor(new_row, m_cursor_column); } -void Terminal::escape$B(const ParamVector& params) +void Terminal::CUD(const ParamVector& params) { + // CUD – Cursor Down int num = 1; if (params.size() >= 1) num = params[0]; @@ -614,7 +615,7 @@ void Terminal::execute_escape_sequence(u8 final) CUU(params); break; case 'B': - escape$B(params); + CUD(params); break; case 'C': escape$C(params); @@ -778,7 +779,7 @@ void Terminal::NEL() void Terminal::IND() { // IND - Index (move down) - escape$B({}); + CUD({}); } void Terminal::RI() diff --git a/Libraries/LibVT/Terminal.h b/Libraries/LibVT/Terminal.h index 0d465ded02e..7556dd5b2d4 100644 --- a/Libraries/LibVT/Terminal.h +++ b/Libraries/LibVT/Terminal.h @@ -149,7 +149,7 @@ private: void emit_string(const StringView&); void CUU(const ParamVector&); - void escape$B(const ParamVector&); + void CUD(const ParamVector&); void escape$C(const ParamVector&); void escape$D(const ParamVector&); void escape$H(const ParamVector&);