osc: 'Set Color' now updates already rendered cells in current grid

Since we don't have the original palette index in already rendered
cells, we compare the color *value*. If it matches, we assume this was
the color index used, and updates the cell's color.

Note that for performance reasons, we only update the current
grid. This is of course wrong, strictly speaking.

However, it is expected that _Set Color_ is used by full-screen
applications using the alternate grid.
This commit is contained in:
Daniel Eklöf 2020-06-11 17:13:32 +02:00
parent 6454e897ab
commit 957e482f45
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 48 additions and 1 deletions

View file

@ -30,6 +30,8 @@
double forked.
* Unicode combining character overflow errors are only logged in when
debug logging has been enabled.
* OSC 4 (_Set Color_) now already rendered cells in the **current**
grid (_normal_ or _alternate_).
### Deprecated