From 3cd43ccccb03b2e68df9c8a344a87e51c007c656 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 12 Aug 2017 19:51:41 +0200 Subject: patch 8.0.0918: cannot get terminal window cursor shape or attributes Problem: Cannot get terminal window cursor shape or attributes. Solution: Support cursor shape, attributes and color. --- src/ui.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index 90e961cac..907390e6b 100644 --- a/src/ui.c +++ b/src/ui.c @@ -1942,14 +1942,14 @@ read_error_exit(void) * May update the shape of the cursor. */ void -ui_cursor_shape(void) +ui_cursor_shape_forced(int forced) { # ifdef FEAT_GUI if (gui.in_use) gui_update_cursor_later(); else # endif - term_cursor_shape(); + term_cursor_mode(forced); # ifdef MCH_CURSOR_SHAPE mch_update_cursor(); @@ -1958,6 +1958,12 @@ ui_cursor_shape(void) # ifdef FEAT_CONCEAL conceal_check_cursur_line(); # endif +} + + void +ui_cursor_shape(void) +{ + ui_cursor_shape_forced(FALSE); } #endif -- cgit v1.2.1