diff options
-rw-r--r-- | Userland/Libraries/LibVT/Terminal.cpp | 34 | ||||
-rw-r--r-- | Userland/Libraries/LibVT/Terminal.h | 30 |
2 files changed, 39 insertions, 25 deletions
diff --git a/Userland/Libraries/LibVT/Terminal.cpp b/Userland/Libraries/LibVT/Terminal.cpp index f4d44791de..3ab590470d 100644 --- a/Userland/Libraries/LibVT/Terminal.cpp +++ b/Userland/Libraries/LibVT/Terminal.cpp @@ -238,11 +238,11 @@ void Terminal::SCORC(const ParamVector&) set_cursor(m_saved_cursor_row, m_saved_cursor_column); } -void Terminal::escape$t(const ParamVector& params) +void Terminal::XTERM_WM(const ParamVector& params) { if (params.size() < 1) return; - dbgln("FIXME: escape$t: Ps: {} (param count: {})", params[0], params.size()); + dbgln("FIXME: XTERM_WM: Ps: {} (param count: {})", params[0], params.size()); } void Terminal::DECSTBM(const ParamVector& params) @@ -337,7 +337,7 @@ void Terminal::CUB(const ParamVector& params) set_cursor(m_cursor_row, new_column); } -void Terminal::escape$G(const ParamVector& params) +void Terminal::CHA(const ParamVector& params) { int new_column = 1; if (params.size() >= 1) @@ -347,7 +347,7 @@ void Terminal::escape$G(const ParamVector& params) set_cursor(m_cursor_row, new_column); } -void Terminal::escape$b(const ParamVector& params) +void Terminal::REP(const ParamVector& params) { if (params.size() < 1) return; @@ -356,7 +356,7 @@ void Terminal::escape$b(const ParamVector& params) put_character_at(m_cursor_row, m_cursor_column++, m_last_code_point); } -void Terminal::escape$d(const ParamVector& params) +void Terminal::VPA(const ParamVector& params) { int new_row = 1; if (params.size() >= 1) @@ -366,7 +366,7 @@ void Terminal::escape$d(const ParamVector& params) set_cursor(new_row, m_cursor_column); } -void Terminal::escape$X(const ParamVector& params) +void Terminal::ECH(const ParamVector& params) { // Erase characters (without moving cursor) int num = 1; @@ -469,7 +469,7 @@ void Terminal::SD(const ParamVector& params) scroll_down(); } -void Terminal::escape$L(const ParamVector& params) +void Terminal::IL(const ParamVector& params) { int count = 1; if (params.size() >= 1) @@ -491,7 +491,7 @@ void Terminal::DA(const ParamVector&) emit_string("\033[?1;0c"); } -void Terminal::escape$M(const ParamVector& params) +void Terminal::DL(const ParamVector& params) { int count = 1; if (params.size() >= 1) @@ -514,7 +514,7 @@ void Terminal::escape$M(const ParamVector& params) } } -void Terminal::escape$P(const ParamVector& params) +void Terminal::DCH(const ParamVector& params) { int num = 1; if (params.size() >= 1) @@ -627,10 +627,10 @@ void Terminal::execute_escape_sequence(u8 final) EL(params); break; case 'M': - escape$M(params); + DL(params); break; case 'P': - escape$P(params); + DCH(params); break; case 'S': SU(params); @@ -639,19 +639,19 @@ void Terminal::execute_escape_sequence(u8 final) SD(params); break; case 'L': - escape$L(params); + IL(params); break; case 'G': - escape$G(params); + CHA(params); break; case 'X': - escape$X(params); + ECH(params); break; case 'b': - escape$b(params); + REP(params); break; case 'd': - escape$d(params); + VPA(params); break; case 'm': SGR(params); @@ -663,7 +663,7 @@ void Terminal::execute_escape_sequence(u8 final) SCORC(params); break; case 't': - escape$t(params); + XTERM_WM(params); break; case 'r': DECSTBM(params); diff --git a/Userland/Libraries/LibVT/Terminal.h b/Userland/Libraries/LibVT/Terminal.h index 721af45310..a1e383d109 100644 --- a/Userland/Libraries/LibVT/Terminal.h +++ b/Userland/Libraries/LibVT/Terminal.h @@ -210,15 +210,29 @@ private: // SD - Scroll Down (called "Pan Up" in VT510) void SD(const ParamVector&); + // IL - Insert Line + void IL(const ParamVector&); + + // DCH - Delete Character + void DCH(const ParamVector&); + + // DL - Delete Line + void DL(const ParamVector&); + + // CHA - Cursor Horizontal Absolute + void CHA(const ParamVector&); + + // REP - Repeat + void REP(const ParamVector&); + + // VPA - Vertical Line Position Absolute + void VPA(const ParamVector&); + + // ECH - Erase Character + void ECH(const ParamVector&); + // FIXME: Find the right names for these. - void escape$t(const ParamVector&); - void escape$L(const ParamVector&); - void escape$M(const ParamVector&); - void escape$P(const ParamVector&); - void escape$G(const ParamVector&); - void escape$X(const ParamVector&); - void escape$b(const ParamVector&); - void escape$d(const ParamVector&); + void XTERM_WM(const ParamVector&); TerminalClient& m_client; |