Allow rendering the cursor with reverse video

Also clean up handling of dynamic global colors.
TODO: Implement none for selection_fg
TODO: Add some tests
TODO: Check that changing colors via remote control works

Fixes #126
This commit is contained in:
Kovid Goyal
2021-10-28 00:21:12 +05:30
parent 3ca3c67828
commit 0fdafd8398
16 changed files with 167 additions and 101 deletions
+1 -1
View File
@@ -888,7 +888,7 @@ class Parser:
ans['copy_on_select'] = copy_on_select(val)
def cursor(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
ans['cursor'] = to_color(val)
ans['cursor'] = to_color_or_none(val)
def cursor_beam_thickness(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
ans['cursor_beam_thickness'] = positive_float(val)