Inspired by Simon Ford's "Terminal" library, this is a clean-room reimplementation that supports a larger set of the ANSI escape sequences and includes a few handy drawing routines. Useful for making console UIs for your projects. The box-drawing stuff requires your terminal to be set to codepage 850.

Fork of ANSITerm by Dan Summers

Revision:
2:a681bda60db7
Parent:
0:863811463610
--- a/ANSITerm.cpp	Sun Sep 23 23:28:27 2012 +0000
+++ b/ANSITerm.cpp	Thu Feb 28 00:38:13 2013 +0000
@@ -25,8 +25,8 @@
 //Box styles
 /* topleft, topright, bottomleft, bottomright, horiz, vert, uptee, downtee, lefttee, righttee,cross */
 const char ANSITerm::two_lines[11] = {0xC9,0xBB,0xC8,0xBC,0xCD,0xBA,0xCA,0xCB,0xB9,0xCC,0xCE};
-const char ANSITerm::one_line[11] = {0xDA,0xBF,0xC0,0xD9,0xC4,0xB3,0xC1,0xC2,0xB4,0xC3,0xC5};
-const char ANSITerm::simple[11] = {'+','+','+','+','-','|','+','+','+','+','+'};
+const char ANSITerm::one_line[11]  = {0xDA,0xBF,0xC0,0xD9,0xC4,0xB3,0xC1,0xC2,0xB4,0xC3,0xC5};
+const char ANSITerm::simple[11]    = {'+','+','+','+','-','|','+','+','+','+','+'};
 
 ANSITerm::ANSITerm(PinName tx, PinName rx) : Serial(tx, rx) {current_style = 0;}