# HG changeset patch # User Christian Brabandt # Date 1503344704 -7200 # Node ID 4e0f699582cf61247071d01f74856de659dbce5b # Parent 62bfec550bc172d512690d89815cb86ee4780001 patch 8.0.0981: cursor in terminal window blinks by default commit https://github.com/vim/vim/commit/0cbba82359ff9f061aa65632cec7b6b57ae6d6e7 Author: Bram Moolenaar Date: Mon Aug 21 21:39:28 2017 +0200 patch 8.0.0981: cursor in terminal window blinks by default 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. diff --git a/src/terminal.c b/src/terminal.c --- a/src/terminal.c +++ b/src/terminal.c @@ -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 { 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 /* 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); } /* diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -770,6 +770,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 981, +/**/ 980, /**/ 979,