summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibVT/Terminal.cpp8
-rw-r--r--Userland/Libraries/LibVT/Terminal.h9
2 files changed, 11 insertions, 6 deletions
diff --git a/Userland/Libraries/LibVT/Terminal.cpp b/Userland/Libraries/LibVT/Terminal.cpp
index f7c9af2615..c4ee16f6d5 100644
--- a/Userland/Libraries/LibVT/Terminal.cpp
+++ b/Userland/Libraries/LibVT/Terminal.cpp
@@ -230,13 +230,13 @@ void Terminal::SGR(const ParamVector& params)
}
}
-void Terminal::escape$s(const ParamVector&)
+void Terminal::SCOSC(const ParamVector&)
{
m_saved_cursor_row = m_cursor_row;
m_saved_cursor_column = m_cursor_column;
}
-void Terminal::escape$u(const ParamVector&)
+void Terminal::SCORC(const ParamVector&)
{
set_cursor(m_saved_cursor_row, m_saved_cursor_column);
}
@@ -668,10 +668,10 @@ void Terminal::execute_escape_sequence(u8 final)
SGR(params);
break;
case 's':
- escape$s(params);
+ SCOSC(params);
break;
case 'u':
- escape$u(params);
+ SCORC(params);
break;
case 't':
escape$t(params);
diff --git a/Userland/Libraries/LibVT/Terminal.h b/Userland/Libraries/LibVT/Terminal.h
index 65e276f71d..f08687497f 100644
--- a/Userland/Libraries/LibVT/Terminal.h
+++ b/Userland/Libraries/LibVT/Terminal.h
@@ -158,8 +158,13 @@ private:
void escape$b(const ParamVector&);
void escape$d(const ParamVector&);
void SGR(const ParamVector&);
- void escape$s(const ParamVector&);
- void escape$u(const ParamVector&);
+
+ // Save Current Cursor Position
+ void SCOSC(const ParamVector&);
+
+ // Restore Saved Cursor Position
+ void SCORC(const ParamVector&);
+
void escape$t(const ParamVector&);
void DECSTBM(const ParamVector&);
void escape$S(const ParamVector&);