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
@@ -472,7 +472,7 @@ class Options:
command_on_bell: typing.List[str] = ['none']
confirm_os_window_close: int = 0
copy_on_select: str = ''
cursor: Color = Color(red=204, green=204, blue=204)
cursor: typing.Optional[kitty.rgb.Color] = Color(red=204, green=204, blue=204)
cursor_beam_thickness: float = 1.5
cursor_blink_interval: float = -1.0
cursor_shape: int = 1