From 0c680d79cd95774765d2d768f8bd288589c02602 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 17 Oct 2014 16:07:27 -0400 Subject: forgot to update this struct definition this was causing us to end up with the wrong offset for is_wide --- vt100/__init__.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'vt100') diff --git a/vt100/__init__.py b/vt100/__init__.py index ccc6d87..97f6604 100644 --- a/vt100/__init__.py +++ b/vt100/__init__.py @@ -16,13 +16,20 @@ class vt100_color_type(Union): ("_idx", c_ubyte), ] -class vt100_color(Structure): +class vt100_color_def(Structure): _anonymous_ = ("_color",) _fields_ = [ ("_color", vt100_color_type), ("_type", c_ubyte), ] +class vt100_color(Union): + _anonymous_ = ("_color",) + _fields_ = [ + ("_color", vt100_color_def), + ("_id", c_uint32), + ] + def type(self): if self._type == 0: return "default" -- cgit v1.2.3-54-g00ecf