Allow setting color table value to none via OSC 21

This commit is contained in:
Kovid Goyal
2026-03-27 20:50:28 +05:30
parent 0a3a9031c5
commit 7e5aac2e2b
3 changed files with 16 additions and 3 deletions

View File

@@ -1616,6 +1616,9 @@ class TestScreen(BaseTest):
q({'selection_background': ''})
self.assertIsNone(s.color_profile.highlight_bg)
q({'selection_background': '?'}, {'selection_background': ''})
opts = self.set_options({'palette_generate': 'semantic'})
q({'213': ''})
q({'213': '?'}, {'213': Color(216, 125, 215)})
s.color_profile.reload_from_opts(opts)
q({'transparent_background_color9': '?'}, {'transparent_background_color9': '?'})
q({'transparent_background_color2': '?'}, {'transparent_background_color2': ''})