Skip to content

Commit 0cbba82

Browse files
committed
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.
1 parent b109bb4 commit 0cbba82

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/terminal.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* in tl_scrollback are no longer used.
3939
*
4040
* TODO:
41-
* - test writing lines to terminal job when implemented for MS-Windows
41+
* - test for writing lines to terminal job does not work on MS-Windows
4242
* - implement term_setsize()
4343
* - add test for giving error for invalid 'termsize' value.
4444
* - support minimal size when 'termsize' is "rows*cols".
@@ -2186,6 +2186,7 @@ create_vterm(term_T *term, int rows, int cols)
21862186
{
21872187
VTerm *vterm;
21882188
VTermScreen *screen;
2189+
VTermValue value;
21892190

21902191
vterm = vterm_new(rows, cols);
21912192
term->tl_vterm = vterm;
@@ -2210,6 +2211,11 @@ create_vterm(term_T *term, int rows, int cols)
22102211

22112212
/* Allow using alternate screen. */
22122213
vterm_screen_enable_altscreen(screen, 1);
2214+
2215+
/* We do not want a blinking cursor by default. */
2216+
value.boolean = 0;
2217+
vterm_state_set_termprop(vterm_obtain_state(vterm),
2218+
VTERM_PROP_CURSORBLINK, &value);
22132219
}
22142220

22152221
/*

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
981,
772774
/**/
773775
980,
774776
/**/

0 commit comments

Comments
 (0)