summaryrefslogtreecommitdiff
path: root/Libraries/LibVT/Terminal.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-01-26 14:27:39 +0000
committerAndreas Kling <kling@serenityos.org>2020-01-26 15:58:06 +0100
commit3549623dc6b44a25b72d44dc18558a96b6d3c44b (patch)
tree45fc192a8a306531d71e21b50179995f7e0e2682 /Libraries/LibVT/Terminal.cpp
parent79f88db6fb9ad4298b7c2ad166b7114b46e53f4d (diff)
downloadserenity-3549623dc6b44a25b72d44dc18558a96b6d3c44b.zip
LibVT: Rename escape$r to DECSTBM (Set Top and Bottom Margins)
Diffstat (limited to 'Libraries/LibVT/Terminal.cpp')
-rw-r--r--Libraries/LibVT/Terminal.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Libraries/LibVT/Terminal.cpp b/Libraries/LibVT/Terminal.cpp
index 2408a883ac..05dc2e5959 100644
--- a/Libraries/LibVT/Terminal.cpp
+++ b/Libraries/LibVT/Terminal.cpp
@@ -275,8 +275,9 @@ void Terminal::escape$t(const ParamVector& params)
dbgprintf("FIXME: escape$t: Ps: %u (param count: %d)\n", params[0], params.size());
}
-void Terminal::escape$r(const ParamVector& params)
+void Terminal::DECSTBM(const ParamVector& params)
{
+ // DECSTBM – Set Top and Bottom Margins ("Scrolling Region")
unsigned top = 1;
unsigned bottom = m_rows;
if (params.size() >= 1)
@@ -284,7 +285,7 @@ void Terminal::escape$r(const ParamVector& params)
if (params.size() >= 2)
bottom = params[1];
if ((bottom - top) < 2 || bottom > m_rows) {
- dbgprintf("Error: escape$r: scrolling region invalid: %u-%u\n", top, bottom);
+ dbgprintf("Error: DECSTBM: scrolling region invalid: %u-%u\n", top, bottom);
return;
}
m_scroll_region_top = top - 1;
@@ -688,7 +689,7 @@ void Terminal::execute_escape_sequence(u8 final)
escape$t(params);
break;
case 'r':
- escape$r(params);
+ DECSTBM(params);
break;
case 'l':
RM(question_param, params);