aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Buren <ryuo@frugalware.org>2013-11-12 01:56:46 -0600
committerMatt Fleming <matt.fleming@intel.com>2013-12-11 09:57:03 +0000
commit98a8760069e9f2d83bf45f2ed8c2feb5610342a7 (patch)
tree9a4b0d46dea67299820a84e902bc61fb0184f4bb
parentc9eaf27f6198b97ee546cfe4f2a0efd550e533ef (diff)
downloadhdt-98a8760069e9f2d83bf45f2ed8c2feb5610342a7.tar.gz
hdt-98a8760069e9f2d83bf45f2ed8c2feb5610342a7.tar.xz
hdt-98a8760069e9f2d83bf45f2ed8c2feb5610342a7.zip
ansi: switch cindex type to attr_t
To fully support color tables with more than 256 entries Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--com32/lib/sys/ansi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/lib/sys/ansi.h b/com32/lib/sys/ansi.h
index 7ccafc8b..39a6f410 100644
--- a/com32/lib/sys/ansi.h
+++ b/com32/lib/sys/ansi.h
@@ -7,6 +7,7 @@
#include <inttypes.h>
#include <stdbool.h>
+#include "vesa/video.h"
#define ANSI_MAX_PARMS 16
@@ -29,7 +30,7 @@ struct term_state {
bool pvt; /* Private code? */
struct curxy xy;
struct curxy saved_xy;
- uint8_t cindex; /* SOH color index */
+ attr_t cindex; /* SOH color index */
uint8_t fg;
uint8_t bg;
uint8_t intensity;