summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2022-06-17 10:01:10 +0100
committerThomas Adam <thomas@xteddy.org>2022-06-17 10:01:10 +0100
commit8ff3091d1677159150dee3791cd244029b9f47d3 (patch)
treefd98727b4e5ebdce8951dd114c75f2774b2fdb76 /window.c
parent89fe2680a9fdbdda3674851e61fd96c76ea923c2 (diff)
parentd9f84854ac01c8d4f6d5507e88d1dc7bcdd99558 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'window.c')
-rw-r--r--window.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/window.c b/window.c
index c0cd9bdc..f689f01d 100644
--- a/window.c
+++ b/window.c
@@ -940,6 +940,7 @@ window_pane_create(struct window *w, u_int sx, u_int sy, u_int hlimit)
screen_init(&wp->base, sx, sy, hlimit);
wp->screen = &wp->base;
+ window_pane_default_cursor(wp);
screen_init(&wp->status_screen, 1, 1, 0);
@@ -1618,3 +1619,17 @@ window_set_fill_character(struct window *w)
w->fill_character = ud;
}
}
+
+void
+window_pane_default_cursor(struct window_pane *wp)
+{
+ struct screen *s = wp->screen;
+ int c;
+
+ c = options_get_number(wp->options, "cursor-colour");
+ s->default_ccolour = c;
+
+ c = options_get_number(wp->options, "cursor-style");
+ s->default_mode = 0;
+ screen_set_cursor_style(c, &s->default_cstyle, &s->default_mode);
+}