Dan Summers / ANSITerm

Files at this revision

API Documentation at this revision

Comitter:
dansummers
Date:
Sun Sep 23 23:28:27 2012 +0000
Parent:
0:863811463610
Commit message:
Added symbols to name each glyph in a boxdraw style.

Changed in this revision

ANSITerm.h Show annotated file Show diff for this revision Revisions of this file
--- a/ANSITerm.h	Tue Sep 18 18:58:19 2012 +0000
+++ b/ANSITerm.h	Sun Sep 23 23:28:27 2012 +0000
@@ -121,15 +121,26 @@
     const static char SGR_WHITE = 128; //37
     
     /* Box styles */
+    const static char BOXDRAW_TOPLEFT = 0;
+    const static char BOXDRAW_TOPRIGHT = 1;
+    const static char BOXDRAW_BOTTOMLEFT = 2;
+    const static char BOXDRAW_BOTTOMRIGHT = 3;
+    const static char BOXDRAW_HORIZONTAL = 4;
+    const static char BOXDRAW_VERTICAL = 5;
+    const static char BOXDRAW_UPTEE = 6;
+    const static char BOXDRAW_DOWNTEE = 7;
+    const static char BOXDRAW_LEFTTEE = 8;
+    const static char BOXDRAW_RIGHTTEE = 9;
+    const static char BOXDRAW_CROSS = 10;
 #ifdef _ANSITERM_CP850_
+    /** Box-drawing style using pluses, minuses and pipes (low-ASCII, should work anywhere).*/
+    static const char simple[11];
+    
     /** Box-drawing style using ASCII two-line box-drawing characters. */
     static const char two_lines[11];
     
     /** Box-drawing style using ASCII one-line box-drawing characters. */
     static const char one_line[11];
-    
-    /** Box-drawing style using pluses, minuses and pipes (low-ASCII, should work anywhere).*/
-    static const char simple[11];
 #endif
     
     ANSITerm(PinName tx, PinName rx);