Fork of SerialTerminal

Dependents:   IMP_projekt

Revision:
3:e171212939f3
Parent:
1:601254e70221
--- a/SerialTerminal.cpp	Fri Oct 16 16:31:49 2015 +0000
+++ b/SerialTerminal.cpp	Fri Dec 13 10:10:41 2019 +0000
@@ -45,4 +45,28 @@
 void SerialTerminal::showCursor() {
     //Hide cursor from terminal
     this->printf("\33[[?25h");    
+}
+
+void SerialTerminal::move_cursor_up(int step_num) {
+    this->printf("\033[%dA", step_num);
+}
+    
+void SerialTerminal::move_cursor_down(int step_num) {
+    this->printf("\033[%dB", step_num);
+}
+    
+void SerialTerminal::move_cursor_right(int step_num) {
+    this->printf("\033[%dC", step_num);
+}
+    
+void SerialTerminal::move_cursor_left(int step_num) {
+    this->printf("\033[%dD", step_num);
+}
+
+void SerialTerminal::hide_cursor() {
+    this->printf("\e[?25l");
+}
+    
+void SerialTerminal::show_cursor() {
+    this->printf("\e[?25h");
 }
\ No newline at end of file