Build a set of color attributes in a class. Helper function for building the :class:`TermColors` and :class`InputTermColors`.
(in_class)
| 46 | ) |
| 47 | |
| 48 | def make_color_table(in_class): |
| 49 | """Build a set of color attributes in a class. |
| 50 | |
| 51 | Helper function for building the :class:`TermColors` and |
| 52 | :class`InputTermColors`. |
| 53 | """ |
| 54 | for name,value in color_templates: |
| 55 | setattr(in_class,name,in_class._base % value) |
| 56 | |
| 57 | class TermColors: |
| 58 | """Color escape sequences. |