]> granicus.if.org Git - vim/commitdiff
patch 8.0.0981: cursor in terminal window blinks by default v8.0.0981
authorBram Moolenaar <Bram@vim.org>
Mon, 21 Aug 2017 19:39:28 +0000 (21:39 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 21 Aug 2017 19:39:28 +0000 (21:39 +0200)
Problem:    Cursor in terminal window blinks by default, while in a real xterm
            it does not blink, unless the -bc argument is used.
Solution:   Do not use a blinking cursor by default.

src/terminal.c
src/version.c

index fbc3cf9c98f3a98824d49f7ab45953fc5b8c1417..a2f57a4bcdde0e61f705638ee8d6f59ccaf72012 100644 (file)
@@ -38,7 +38,7 @@
  * in tl_scrollback are no longer used.
  *
  * TODO:
- * - test writing lines to terminal job when implemented for MS-Windows
+ * - test for writing lines to terminal job does not work on MS-Windows
  * - implement term_setsize()
  * - add test for giving error for invalid 'termsize' value.
  * - support minimal size when 'termsize' is "rows*cols".
@@ -2186,6 +2186,7 @@ create_vterm(term_T *term, int rows, int cols)
 {
     VTerm          *vterm;
     VTermScreen            *screen;
+    VTermValue     value;
 
     vterm = vterm_new(rows, cols);
     term->tl_vterm = vterm;
@@ -2210,6 +2211,11 @@ create_vterm(term_T *term, int rows, int cols)
 
     /* Allow using alternate screen. */
     vterm_screen_enable_altscreen(screen, 1);
+
+    /* We do not want a blinking cursor by default. */
+    value.boolean = 0;
+    vterm_state_set_termprop(vterm_obtain_state(vterm),
+                                              VTERM_PROP_CURSORBLINK, &value);
 }
 
 /*
index c8ae29752c2ac4a24ad666f2dc36276afa04428b..25ec8cbfc3e613379e9860581268608c9e842f70 100644 (file)
@@ -769,6 +769,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    981,
 /**/
     980,
 /**/