From a259eda5358b4fdb788b6fcf0f8e1482a5387d77 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 30 Jun 2020 17:45:34 +0200 Subject: 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. --- terminal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'terminal.c') 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, }, -- cgit v1.3