comparison src/ui.c @ 12076:ca4931a20f8c v8.0.0918

patch 8.0.0918: cannot get terminal window cursor shape or attributes commit https://github.com/vim/vim/commit/3cd43ccccb03b2e68df9c8a344a87e51c007c656 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 12 19:51:41 2017 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Sat, 12 Aug 2017 20:00:05 +0200
parents c3227699ad4d
children 60cf03e59402
comparison
equal deleted inserted replaced
12075:488c6139c881 12076:ca4931a20f8c
1940 #if defined(CURSOR_SHAPE) || defined(PROTO) 1940 #if defined(CURSOR_SHAPE) || defined(PROTO)
1941 /* 1941 /*
1942 * May update the shape of the cursor. 1942 * May update the shape of the cursor.
1943 */ 1943 */
1944 void 1944 void
1945 ui_cursor_shape(void) 1945 ui_cursor_shape_forced(int forced)
1946 { 1946 {
1947 # ifdef FEAT_GUI 1947 # ifdef FEAT_GUI
1948 if (gui.in_use) 1948 if (gui.in_use)
1949 gui_update_cursor_later(); 1949 gui_update_cursor_later();
1950 else 1950 else
1951 # endif 1951 # endif
1952 term_cursor_shape(); 1952 term_cursor_mode(forced);
1953 1953
1954 # ifdef MCH_CURSOR_SHAPE 1954 # ifdef MCH_CURSOR_SHAPE
1955 mch_update_cursor(); 1955 mch_update_cursor();
1956 # endif 1956 # endif
1957 1957
1958 # ifdef FEAT_CONCEAL 1958 # ifdef FEAT_CONCEAL
1959 conceal_check_cursur_line(); 1959 conceal_check_cursur_line();
1960 # endif 1960 # endif
1961 }
1962
1963 void
1964 ui_cursor_shape(void)
1965 {
1966 ui_cursor_shape_forced(FALSE);
1961 } 1967 }
1962 #endif 1968 #endif
1963 1969
1964 #if defined(FEAT_CLIPBOARD) || defined(FEAT_GUI) || defined(FEAT_RIGHTLEFT) \ 1970 #if defined(FEAT_CLIPBOARD) || defined(FEAT_GUI) || defined(FEAT_RIGHTLEFT) \
1965 || defined(FEAT_MBYTE) || defined(PROTO) 1971 || defined(FEAT_MBYTE) || defined(PROTO)