termio/exec: ensure initial cursor blink mode is set to config

This commit is contained in:
Mitchell Hashimoto
2023-09-09 20:40:22 -07:00
parent 3583a0c1ca
commit 160b1eeb5a

View File

@ -119,6 +119,9 @@ pub fn init(alloc: Allocator, opts: termio.Options) !Exec {
try term.screen.kitty_images.setLimit(alloc, opts.config.image_storage_limit); try term.screen.kitty_images.setLimit(alloc, opts.config.image_storage_limit);
try term.secondary_screen.kitty_images.setLimit(alloc, opts.config.image_storage_limit); try term.secondary_screen.kitty_images.setLimit(alloc, opts.config.image_storage_limit);
// Set default cursor blink settings
term.modes.set(.cursor_blinking, opts.config.cursor_blink);
var subprocess = try Subprocess.init(alloc, opts); var subprocess = try Subprocess.init(alloc, opts);
errdefer subprocess.deinit(); errdefer subprocess.deinit();