diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-12-25 16:13:50 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-12-26 11:37:48 +0000 |
| commit | c2bf2d3650b6a837efec834d23b1c3774c263852 (patch) | |
| tree | bb9bc7c3937fd12e7cdfe970b97bb50165b97a62 /scripts/benchmark.py | |
| parent | csi: no need to set VT state’s fg/bg to the default ones on SGR reset (diff) | |
csi: store color index, not actual color, in cell’s fg/bg attributes
When using indexed colors (i.e. SGR 30/40/90/100), store the index
into the cell’s fg/bg attributes, not the actual color value.
This has a couple of consequences:
Color table lookup is now done when rendering. This means a rendered
cell will always reflect the *current* color table, not the color
table that was in use when the cell was printed to.
This simplifies the OSC-4/104 logic, since we no longer need to update
the grid - we just have to damage it to trigger rendering.
Furthermore, this change simplifies the VT parsing, since we no longer
need to do any memory loads (except loading the SGR parameter values),
only writes.
Diffstat (limited to 'scripts/benchmark.py')
0 files changed, 0 insertions, 0 deletions
