Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing [2 q in command prompt #7049

Closed
wamoyo opened this issue Jul 18, 2017 · 12 comments
Closed

Printing [2 q in command prompt #7049

wamoyo opened this issue Jul 18, 2017 · 12 comments
Labels
bug-regression wrong behavior that was introduced in a previous commit (please bisect) tui

Comments

@wamoyo
Copy link

wamoyo commented Jul 18, 2017

  • nvim --version: NVIM v0.2.1-dev
  • Vim (version: 7.4) behaves differently? Yes. Behaves normally.
  • Operating system/version: Ubuntu 14.04
  • Terminal name/version: Gnome Terminal 3.12.3
  • $TERM: xterm-256color

Steps to reproduce using nvim -u NORC

nvim -u NORC
:

Actual behaviour

Prints �[2 q to the command area at the bottom, as in photo...

screenshot from 2017-07-18 18 50 47

Expected behaviour

Prints just the : with a blinking cursor as usual when expecting user to enter command.

Also, it prints that �[2 q in random places when pressing Esc, and does weird things when highlighting lines. I can't tell what's wrong. My editor seems drunk : )

@justinmk
Copy link
Member

Looks like your terminal doesn't support cursor shaping. Newer versions of gnome-terminal do.

We try to detect this via VTE_VERSION, may it's empty in your env for some reason.

To disable cursor shaping, see :help guicursor. It's enabled by default because it's 2017.

@wamoyo
Copy link
Author

wamoyo commented Jul 18, 2017

Woohoo! That sounds solvable : )

$ echo $VTE_VERSION
3603

@justinmk
Copy link
Member

justinmk commented Jul 19, 2017

Arg, this is a regression. The VTE version check for cursor shaping was removed in the recent TUI rework.

@justinmk justinmk reopened this Jul 19, 2017
@justinmk justinmk added bug-regression wrong behavior that was introduced in a previous commit (please bisect) and removed duplicate labels Jul 19, 2017
@wamoyo
Copy link
Author

wamoyo commented Jul 19, 2017

Anything I can do to help?

@justinmk
Copy link
Member

If you can try #6997 that would help.

@wamoyo
Copy link
Author

wamoyo commented Jul 19, 2017

Hmmm... Not really sure what to try from that issue.

Put "\x1b[%p1%d q" in set guicursor=?

@stanislas-brossette
Copy link

Hello, I have observed the same bug since I updated nvim. Only a few differences on my system (terminal and VTE versions)
nvim --version: NVIM v0.2.1-dev
Vim (version: 7.4) behaves differently? Yes. Behaves normally.
Operating system/version: Ubuntu 14.04
Terminal name/version: Gnome Terminal 3.6.2
$TERM: xterm-256color
$VTE_VERSION 3409
Have you found a fix?

@Shougo
Copy link
Contributor

Shougo commented Jul 19, 2017

@stanislas-brossette You can test #6997.

@tclauzier
Copy link

Disabling cursor shapes (see command in :help guicursor) helped to fix it on Guake (Ubuntu 17.04).
Thanks for the tip @justinmk :)

justinmk pushed a commit to justinmk/neovim that referenced this issue Aug 12, 2017
Fix linuxvt cursor shape codes
Fix konsole cursor_shapes (even when inside tmux)
Do not trust old VTE terminal lies

Closes neovim#6978
Closes neovim#7002
Closes neovim#7049
@jumbosushi
Copy link

jumbosushi commented Dec 2, 2017

I've had this issue for a while since I didn't know how to google for this. Just tried :help guicursor disabling trick and it totally worked 🎉 Thanks for the tip!

Edit: This + combination of set -g terminal-overrides ',xterm-256color:Tc' from #5096 did the trick

@stianlagstad
Copy link

I also had to set :set guicursor= in my .vimrc to avoid this problem, using Ubuntu 16.04.

@neovim neovim locked and limited conversation to collaborators Dec 12, 2017
@justinmk
Copy link
Member

justinmk commented Nov 3, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug-regression wrong behavior that was introduced in a previous commit (please bisect) tui
Projects
None yet
Development

No branches or pull requests

7 participants