csi: let CSI 0 q mean "switch to user configured cursor style"

According to the specs, \E[0 q means a blinking block cursor. However,
since it also states that \E[1 q *also* is a blinking block cursor,
and that it is the default, *and* given that fact that parameter-less
CSIs typically means "reset", let's make it mean "reset to the user
configured cursor style".
This commit is contained in:
Daniel Eklöf 2019-07-22 20:19:27 +02:00
parent 3ccdef3498
commit 49034bb759
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 11 additions and 3 deletions

1
main.c
View file

@ -371,6 +371,7 @@ main(int argc, char *const *argv)
conf.colors.bright[7],
},
},
.default_cursor_style = conf.cursor.style,
.cursor_style = conf.cursor.style,
.selection = {
.start = {-1, -1},