config: add cursor.unfocused-style

This option controls how we render the cursor when the terminal window
is unfocused.

Possible values are:

* hollow: the default, and how we rendered the cursor before this
  patch.
* unchanged: render the cursor exactly the same way as when the window
  is focused.
* none: do not render any cursor at all

Closes #1582
This commit is contained in:
Daniel Eklöf 2024-04-09 16:28:54 +02:00
parent 9287946b36
commit e5a2ac4b57
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 59 additions and 7 deletions

View file

@ -52,6 +52,13 @@
## Unreleased
### Added
* `cursor.unfocused-style=unchanged|hollow|none` to `foot.ini`. The
default is `hollow` ([#1582][1582]).
[1582]: https://codeberg.org/dnkl/foot/issues/1582
### Changed
### Deprecated
### Removed