aboutsummaryrefslogtreecommitdiffstats
path: root/vt100
diff options
context:
space:
mode:
Diffstat (limited to 'vt100')
-rw-r--r--vt100/__init__.py9
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"