diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-03-04 14:14:15 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-03-04 14:14:15 +1000 |
commit | c1105485079fba97a62df62baeff3a4dcc7686ef (patch) | |
tree | 541731c9c4431ad81728122df90c2b2f77b6a03a /src/gwin/console.h | |
parent | 43527de2c09eb90e5c1cebbce587b5da2bda957d (diff) | |
download | uGFX-c1105485079fba97a62df62baeff3a4dcc7686ef.tar.gz uGFX-c1105485079fba97a62df62baeff3a4dcc7686ef.tar.bz2 uGFX-c1105485079fba97a62df62baeff3a4dcc7686ef.zip |
Add support for ANSI like escape sequences to control display color and attributes in a GWIN console.
Updated the console demo to demonstrate this.
Diffstat (limited to 'src/gwin/console.h')
-rw-r--r-- | src/gwin/console.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gwin/console.h b/src/gwin/console.h index 252b627e..14bc7eb3 100644 --- a/src/gwin/console.h +++ b/src/gwin/console.h @@ -31,6 +31,12 @@ typedef struct GConsoleObject { GWindowObject g; coord_t cx, cy; // Cursor position + #if GWIN_CONSOLE_ESCSEQ + uint8_t startattr; // ANSI-like escape sequences + uint8_t currattr; + uint16_t escstate; + #endif + #if GWIN_CONSOLE_USE_HISTORY char * buffer; // buffer to store console content size_t bufsize; // size of buffer |