[vim/vim] Vim 8.0.0918 make cursor blinks in urxvt (#1986)

71 views
Skip to first unread message

Piotr Karbowski

unread,
Aug 17, 2017, 2:32:51 PM8/17/17
to vim/vim, Subscribed

The changes in commit 3cd43cc broke the cursor. Once one opens vim in urxvt, the cursor starts blinking, and blinks even outside vim. No option in vim or urxvt seems to affect it. Downgrade to 8.0.0917 fixes the problem.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub

Piotr Karbowski

unread,
Aug 17, 2017, 2:33:02 PM8/17/17
to vim/vim, Subscribed

cc @brammool

Bram Moolenaar

unread,
Aug 17, 2017, 3:23:15 PM8/17/17
to vim/vim, Subscribed

What is the output of :set t_SH

Piotr Karbowski

unread,
Aug 17, 2017, 3:31:23 PM8/17/17
to vim/vim, Subscribed

E846: Key code not set: t_SH in working version
t_SH=^[[%p1%d q in the 8.0.0918

dandersson

unread,
Aug 17, 2017, 5:36:14 PM8/17/17
to vim/vim, Subscribed

I am seeing the same issue in Debian Sid using

  • rxvt-unicode 9.22-1+b3 (TERM=rxvt-256color, but TERM does not seem to matter)
  • Vim 8.0.0946-1

An additional observation is that it does not seem to happen if I run Vim from within tmux (TERM=screen-256color, but it does not seem to matter here either). Within tmux, :set t_SH yields just t_SH=.

If I issue

:!printf '\033[?12l'

(from https://unix.stackexchange.com/a/3769) within Vim, then the blinking stops.


A curiosity: if I start Vim to make the cursor blink and then

  1. issue :term
  2. issue :!printf '\033[?12l' in a regular buffer

the blinking does not stop. If I however instead

  1. issue :term
  2. issue printf '\033[?12l' within the newly opened terminal (this step in itself does not stop the cursor blinking)
  3. issue :!printf '\033[?12l' in a regular buffer

the blinking does stop. This can be repeated within the same session: the cursor starts blinking again every time I issue :term.

Bram Moolenaar

unread,
Aug 19, 2017, 10:42:18 AM8/19/17
to vim/vim, Subscribed

> I am seeing the same issue in Debian Sid using
>
> * rxvt-unicode 9.22-1+b3 (`TERM=rxvt-256color`, but `TERM` does not seem to matter)
> * Vim 8.0.0946-1
>
> An additional observation is that it does not seem to happen if I run Vim from within tmux (`TERM=screen-256color`, but it does not seem to matter here either). Within tmux, `:set t_SH` yields just `t_SH=`.

>
> If I issue
>
> :!printf '\033[?12l'
>
> (from https://unix.stackexchange.com/a/3769) within Vim, then the blinking stops.
>
> ---

>
> A curiosity: if I start Vim to make the cursor blink and then
>
> 1. issue `:term`
> 2. issue `:!printf '\033[?12l'` in a regular buffer
>
> the blinking does _not_ stop. If I however instead
>
> 1. issue `:term`
> 2. issue `printf '\033[?12l'` within the newly opened terminal (this step in itself does not stop the cursor blinking)
> 3. issue `:!printf '\033[?12l'` in a regular buffer
>
> the blinking _does_ stop. This can be repeated within the same session: the cursor starts blinking again every time I issue `:term`.


I can reproduce this if I reset t_SI, t_SR and t_EI.
I'll have to request the cursor shape on startup, so that it can be
restored.

--
BEDEVERE: And what do you burn, apart from witches?
FOURTH VILLAGER: ... Wood?
BEDEVERE: So why do witches burn?
SECOND VILLAGER: (pianissimo) ... Because they're made of wood...?
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

zdo...@redhat.com

unread,
Aug 21, 2017, 11:32:38 AM8/21/17
to vim_dev, v...@noreply.github.com, subsc...@noreply.github.com, reply+00b1d198be614a92299c18ad732b7dfb3932459...@reply.github.com, vim-dev...@256bit.org
Seeing same thing on Fedora 25, with $TERM=xterm-256color, and t_SH=^[[%p1%d q . Version is 8.0.946. Cursor is blinking even after its setting off with `:set guicursor+=a:blinkon0` .

vim-dev ML

unread,
Aug 21, 2017, 11:33:39 AM8/21/17
to vim/vim, vim-dev ML, Your activity
Seeing same thing on Fedora 25, with $TERM=xterm-256color, and t_SH=^[[%p1%d q . Version is 8.0.946. Cursor is blinking even after its setting off with `:set guicursor+=a:blinkon0` .

Kazunobu Kuriyama

unread,
Aug 21, 2017, 12:40:50 PM8/21/17
to vim/vim, vim-dev ML, Comment

The fix has already been given with Patches 8.0.0967 and 8.0.0973 (93c92ef and ce1c327, respectively). Would you try 8.0.0973 or later to see if the issue is fixed for you?

Cursor is blinking even after its setting off with :set guicursor+=a:blinkon0 .

'guicursor' is used only when GUI is running, so it has no effect on the cursor of Vim on urxvt.


You are receiving this because you commented.

Piotr Karbowski

unread,
Aug 21, 2017, 3:07:00 PM8/21/17
to vim/vim, vim-dev ML, Comment

I can confirm that v8.0.0973 works as it should.


You are receiving this because you commented.

zdo...@redhat.com

unread,
Aug 22, 2017, 7:16:08 AM8/22/17
to vim_dev, v...@noreply.github.com, vim-dev...@256bit.org, com...@noreply.github.com, reply+00b1d1983abffe818027ec884816731f76abdae...@reply.github.com
Cursor is working fine, thank you for the patch!

vim-dev ML

unread,
Aug 22, 2017, 7:16:37 AM8/22/17
to vim/vim, vim-dev ML, Your activity
Cursor is working fine, thank you for the patch!

Christian Brabandt

unread,
Aug 22, 2017, 7:57:37 AM8/22/17
to vim/vim, vim-dev ML, Comment

Closed #1986.


You are receiving this because you commented.

Reply all
Reply to author
Forward
0 new messages