diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-17 16:07:27 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-17 16:07:27 -0400 |
commit | 0c680d79cd95774765d2d768f8bd288589c02602 (patch) | |
tree | ba90a5fb1e51c25ce14f0bd6c0e3a199dbc900bc /vt100 | |
parent | 17dbec930c1ebfae7978f35c7b33e5365b4b11b0 (diff) | |
download | libvt100-python-0c680d79cd95774765d2d768f8bd288589c02602.tar.gz libvt100-python-0c680d79cd95774765d2d768f8bd288589c02602.zip |
forgot to update this struct definition
this was causing us to end up with the wrong offset for is_wide
Diffstat (limited to 'vt100')
-rw-r--r-- | vt100/__init__.py | 9 |
1 files changed, 8 insertions, 1 deletions
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" |