From 0d82b120da7cedab05006255d2695896672fdf7c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 1 Dec 2023 19:39:16 -0800 Subject: [PATCH] termio: set configured default cursor style on startup Fixes #958 --- src/termio/Exec.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index aa2dc72cf..e1eb96956 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -157,6 +157,9 @@ pub fn init(alloc: Allocator, opts: termio.Options) !Exec { opts.config.cursor_blink orelse true, ); + // Set our default cursor style + term.screen.cursor.style = opts.config.cursor_style; + var subprocess = try Subprocess.init(alloc, opts); errdefer subprocess.deinit();