aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-06-30 15:45:34 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-06-30 15:45:34 +0000
commita259eda5358b4fdb788b6fcf0f8e1482a5387d77 (patch)
treea20e1b0f3b1373b51d42d4281898c9ddb5013fcc /terminal.c
parentcsi: '\E[0 q' resets the cursor style to the default, not '\E[2 q' (diff)
config: add 'blink' option to cursor section in footrc
This option controls whether the default cursor should blink or not. The default is to *not* blink.
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index c5960c90..c6e03c24 100644
--- a/terminal.c
+++ b/terminal.c
@@ -844,10 +844,11 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
.alpha = conf->colors.alpha,
},
.origin = ORIGIN_ABSOLUTE,
+ .default_cursor_blink = conf->cursor.blink,
.default_cursor_style = conf->cursor.style,
.cursor_style = conf->cursor.style,
.cursor_blink = {
- .active = false,
+ .active = conf->cursor.blink,
.state = CURSOR_BLINK_ON,
.fd = cursor_blink_fd,
},