Based on Terminal lib from Simon Ford, some adds

Fork of TerminalPlus by Max Scordamaglia

Revision:
6:f8c90e147000
Parent:
5:d045e3561533
Child:
7:80096ab72764
diff -r d045e3561533 -r f8c90e147000 Terminal.h
--- a/Terminal.h	Mon Sep 14 21:33:00 2015 +0000
+++ b/Terminal.h	Wed Sep 16 00:08:12 2015 +0000
@@ -21,10 +21,11 @@
  * THE SOFTWARE.
  */
 
-#include "mbed.h"
 
 #ifndef MBED_TERMINAL_H
 #define MBED_TERMINAL_H
+#include "mbed.h"
+#include <string>
 
 /** Control and display on an ANSI/VT100 Terminal
  *
@@ -75,9 +76,11 @@
 
     /** Set the foreground colour */
     void foreground(int colour);
+    void forgcol(int colour);
 
     /** Set the background colour */
     void background(int colour);
+    void bckgcol(int color);
 
     /*printf formattato con dimensione e posizione*/
     void formatPrintf(char sstr[], int xx, int yy, int padb=0);
@@ -90,6 +93,11 @@
     
     /**Default input pos */
     void readypos();
+    
+    private:
+    string padstr(string sttde, int maxlen, char fillchar);
+    string addEOS(string sttde);
+    char* string2char(string sttde);
 
 };