Terminal interface for communicating with serial ANSI/VT100 terminals

Dependents:   IMP_projekt

Revision:
3:169909f7566f
Parent:
2:85184c13476c
--- a/Terminal.cpp	Tue Nov 23 16:03:35 2010 +0000
+++ b/Terminal.cpp	Fri Dec 13 10:10:21 2019 +0000
@@ -55,3 +55,19 @@
     int c = 40 + rgb888tobgr111(colour);
     this->printf("\033[%dm", c);
 }
+
+void Terminal::move_cursor_up(int step_num) {
+    this->printf("\033[%dA", step_num);
+}
+    
+void Terminal::move_cursor_down(int step_num) {
+    this->printf("\033[%dB", step_num);
+}
+    
+void Terminal::move_cursor_right(int step_num) {
+    this->printf("\033[%dC", step_num);
+}
+    
+void Terminal::move_cursor_left(int step_num) {
+    this->printf("\033[%dD", step_num);
+}