summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-14 16:25:19 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-14 16:25:19 +0100
commit1565dc3ab39d466c06bb4ec22c6bef325876ba4d (patch)
treeff743b22d8921f98090d2682dd17bfc3925326c6
parentf9569db1e5d57cb486dcb4cb84eb86d9f3092ef6 (diff)
downloadserenity-1565dc3ab39d466c06bb4ec22c6bef325876ba4d.zip
Terminal: Add some logging for the 'r' final.
I haven't implemented scrolling regions yet, but this will at least give me some indication that they're being used.
-rw-r--r--Applications/Terminal/Terminal.cpp14
-rw-r--r--Applications/Terminal/Terminal.h1
2 files changed, 14 insertions, 1 deletions
diff --git a/Applications/Terminal/Terminal.cpp b/Applications/Terminal/Terminal.cpp
index e065e6b35a..48f7023e14 100644
--- a/Applications/Terminal/Terminal.cpp
+++ b/Applications/Terminal/Terminal.cpp
@@ -192,7 +192,18 @@ void Terminal::escape$t(const Vector<unsigned>& params)
{
if (params.size() < 1)
return;
- dbgprintf("escape$t: Ps: %u\n", params[0]);
+ dbgprintf("FIXME: escape$t: Ps: %u\n", params[0]);
+}
+
+void Terminal::escape$r(const Vector<unsigned>& params)
+{
+ unsigned top = 1;
+ unsigned bottom = m_rows;
+ if (params.size() >= 1)
+ top = params[0];
+ if (params.size() >= 2)
+ bottom = params[1];
+ dbgprintf("FIXME: escape$r: Set scrolling region: %u-%u\n", top, bottom);
}
void Terminal::escape$H(const Vector<unsigned>& params)
@@ -386,6 +397,7 @@ void Terminal::execute_escape_sequence(byte final)
case 's': escape$s(params); break;
case 'u': escape$u(params); break;
case 't': escape$t(params); break;
+ case 'r': escape$r(params); break;
default:
dbgprintf("Terminal::execute_escape_sequence: Unhandled final '%c'\n", final);
break;
diff --git a/Applications/Terminal/Terminal.h b/Applications/Terminal/Terminal.h
index ec11a62f0e..3b3b32a59c 100644
--- a/Applications/Terminal/Terminal.h
+++ b/Applications/Terminal/Terminal.h
@@ -53,6 +53,7 @@ private:
void escape$s(const Vector<unsigned>&);
void escape$u(const Vector<unsigned>&);
void escape$t(const Vector<unsigned>&);
+ void escape$r(const Vector<unsigned>&);
void clear();