diff options
author | Linus Groh <mail@linusgroh.de> | 2020-01-26 14:27:39 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-01-26 15:58:06 +0100 |
commit | 3549623dc6b44a25b72d44dc18558a96b6d3c44b (patch) | |
tree | 45fc192a8a306531d71e21b50179995f7e0e2682 | |
parent | 79f88db6fb9ad4298b7c2ad166b7114b46e53f4d (diff) | |
download | serenity-3549623dc6b44a25b72d44dc18558a96b6d3c44b.zip |
LibVT: Rename escape$r to DECSTBM (Set Top and Bottom Margins)
-rw-r--r-- | Libraries/LibVT/Terminal.cpp | 7 | ||||
-rw-r--r-- | 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 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); diff --git a/Libraries/LibVT/Terminal.h b/Libraries/LibVT/Terminal.h index b02dca2de5..d0f461150f 100644 --- a/Libraries/LibVT/Terminal.h +++ b/Libraries/LibVT/Terminal.h @@ -167,7 +167,7 @@ private: void escape$s(const ParamVector&); void escape$u(const ParamVector&); void escape$t(const ParamVector&); - void escape$r(const ParamVector&); + void DECSTBM(const ParamVector&); void escape$S(const ParamVector&); void escape$T(const ParamVector&); void escape$L(const ParamVector&); |