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

Unexpected character after update #5990

Closed
dikiaap opened this Issue Jan 22, 2017 · 26 comments

Comments

Projects
None yet
@dikiaap

dikiaap commented Jan 22, 2017

  • nvm --version: NVIM 0.2.0-dev
  • VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jan 18 2017 12:42:32)
  • Operating system/version: Ubuntu
  • Terminal name/version: lxterminal, tested in tty too
  • $TERM: xterm-256color

I was updating neovim and this character suddenly appear. Before updating, this isn't happen.
Tested in vim, all is fine.

screenshot from 2017-01-22 10-01-13
screenshot from 2017-01-22 10-01-00

@jamessan

This comment has been minimized.

Show comment
Hide comment
@jamessan

jamessan Jan 22, 2017

Member

That's probably due to ef753a7. If you put let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 0 in your init.vim, does that fix the problem?

Member

jamessan commented Jan 22, 2017

That's probably due to ef753a7. If you put let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 0 in your init.vim, does that fix the problem?

@justinmk justinmk closed this Jan 22, 2017

@justinmk

This comment has been minimized.

Show comment
Hide comment
@justinmk

justinmk Jan 22, 2017

Member

Yes, your terminal should ignore unknown sequences.

Member

justinmk commented Jan 22, 2017

Yes, your terminal should ignore unknown sequences.

@justinmk

This comment has been minimized.

Show comment
Hide comment
@justinmk

justinmk Jan 22, 2017

Member

@dikiaap What does echo $VTE_VERSION report? Also if you can find out what version of libvte your system uses, please include that.

Member

justinmk commented Jan 22, 2017

@dikiaap What does echo $VTE_VERSION report? Also if you can find out what version of libvte your system uses, please include that.

@dikiaap

This comment has been minimized.

Show comment
Hide comment
@dikiaap

dikiaap Jan 22, 2017

@justinmk Already fixed this. I did echo $VTE_VERSION command and there is nothing results

dikiaap commented Jan 22, 2017

@justinmk Already fixed this. I did echo $VTE_VERSION command and there is nothing results

@dikiaap

This comment has been minimized.

Show comment
Hide comment
@dikiaap

dikiaap Jan 22, 2017

libvte-2.19-0 Version 0.42.5-1ubuntu1
libvte9 Version 1:0.28.2-5ubuntu3

dikiaap commented Jan 22, 2017

libvte-2.19-0 Version 0.42.5-1ubuntu1
libvte9 Version 1:0.28.2-5ubuntu3

@jessebl

This comment has been minimized.

Show comment
Hide comment
@jessebl

jessebl Jan 22, 2017

Just wondering, why has this been marked closed? Is let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 0 the final solution? Respectfully, it seems to me like it would be good to not have user-configuration be the fix.

jessebl commented Jan 22, 2017

Just wondering, why has this been marked closed? Is let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 0 the final solution? Respectfully, it seems to me like it would be good to not have user-configuration be the fix.

@jszakmeister

This comment has been minimized.

Show comment
Hide comment
@jszakmeister

jszakmeister Jan 22, 2017

Member

@kantsdog It's not that simple. Terminals have all kinds of brokenness, and this is one of them. Many support changing the cursor shape, but do it in one of two different ways. And while there are ways to query whether or not a terminal supports the feature, most do not implement the mechanism. So we're stuck with user configuration until the situation improves. :-(

Member

jszakmeister commented Jan 22, 2017

@kantsdog It's not that simple. Terminals have all kinds of brokenness, and this is one of them. Many support changing the cursor shape, but do it in one of two different ways. And while there are ways to query whether or not a terminal supports the feature, most do not implement the mechanism. So we're stuck with user configuration until the situation improves. :-(

@justinmk

This comment has been minimized.

Show comment
Hide comment
@justinmk

justinmk Jan 22, 2017

Member

I made a change that enables cursor shape by default. It looks like the state of terminals having even basic fallback behavior is worse than expected, so I'll switch it back to opt-in instead of opt-out.

I guess querying will be the only way this can be automatically enabled, because of all the broken terminals out there.

(I'm grateful for the feedback from users giving us early warning about this)

Member

justinmk commented Jan 22, 2017

I made a change that enables cursor shape by default. It looks like the state of terminals having even basic fallback behavior is worse than expected, so I'll switch it back to opt-in instead of opt-out.

I guess querying will be the only way this can be automatically enabled, because of all the broken terminals out there.

(I'm grateful for the feedback from users giving us early warning about this)

@justinmk justinmk reopened this Jan 22, 2017

@justinmk justinmk added this to the 0.2 milestone Jan 22, 2017

@jessebl

This comment has been minimized.

Show comment
Hide comment
@jessebl

jessebl Jan 23, 2017

@justinmk Thanks for changing it back to the default. Had I not found the solution in this thread, Neovim would have become unworkable for me and people in my situation, so switching it back to opt-in seems like a good call from my perspective.

@jszakmeister Thanks for the helpful and informative explanation of terminals in all their brokenness.

jessebl commented Jan 23, 2017

@justinmk Thanks for changing it back to the default. Had I not found the solution in this thread, Neovim would have become unworkable for me and people in my situation, so switching it back to opt-in seems like a good call from my perspective.

@jszakmeister Thanks for the helpful and informative explanation of terminals in all their brokenness.

@prlz77

This comment has been minimized.

Show comment
Hide comment
@prlz77

prlz77 Feb 20, 2017

Thank you very much. I have also realized that unsetting TERM when calling nvim does also "fix" this issue.

prlz77 commented Feb 20, 2017

Thank you very much. I have also realized that unsetting TERM when calling nvim does also "fix" this issue.

@jamessan

This comment has been minimized.

Show comment
Hide comment
@jamessan

jamessan Feb 20, 2017

Member

@prlz77 Unsetting TERM is a very heavy-handed approach to "fix" this. Just add let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 0 in your init.vim

Member

jamessan commented Feb 20, 2017

@prlz77 Unsetting TERM is a very heavy-handed approach to "fix" this. Just add let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 0 in your init.vim

@prlz77

This comment has been minimized.

Show comment
Hide comment
@prlz77

prlz77 Feb 20, 2017

@jamessan I changed it when I discovered this thread. Thank you anyway!

prlz77 commented Feb 20, 2017

@jamessan I changed it when I discovered this thread. Thank you anyway!

@rsleiman

This comment has been minimized.

Show comment
Hide comment
@rsleiman

rsleiman Mar 2, 2017

@jamessan It worked as you suggested. Thank you!.

rsleiman commented Mar 2, 2017

@jamessan It worked as you suggested. Thank you!.

justinmk added a commit to justinmk/neovim that referenced this issue Apr 4, 2017

'guicursor': Disable by default for unknown terminals.
User can still set guicursor explicitly in init.vim.

Closes neovim#5990
Closes neovim#6403

justinmk added a commit to justinmk/neovim that referenced this issue Apr 4, 2017

'guicursor': Disable by default for unknown terminals.
User can still set guicursor explicitly in init.vim.

Closes neovim#5990
Closes neovim#6403
@prlz77

This comment has been minimized.

Show comment
Hide comment
@prlz77

prlz77 Apr 6, 2017

The problem is back after the last update.

I am using terminator and TERM=xterm-256color. My nvim version is v0.2.0-dev.

It persists even with $NVIM_TUI_ENABLE_CURSOR_SHAPE = 0.

nvim

prlz77 commented Apr 6, 2017

The problem is back after the last update.

I am using terminator and TERM=xterm-256color. My nvim version is v0.2.0-dev.

It persists even with $NVIM_TUI_ENABLE_CURSOR_SHAPE = 0.

nvim

@justinmk

This comment has been minimized.

Show comment
Hide comment
Member

justinmk commented Apr 6, 2017

@prlz77

This comment has been minimized.

Show comment
Hide comment
@prlz77

prlz77 Apr 6, 2017

Thank you, the problem persisted even with set guicursor= because a plug-in was overriding it.

I solved it with export VTE_VERSION="100" (https://github.com/neovim/neovim/wiki/FAQ#how-can-i-change-the-cursor-shape-in-the-terminal)

prlz77 commented Apr 6, 2017

Thank you, the problem persisted even with set guicursor= because a plug-in was overriding it.

I solved it with export VTE_VERSION="100" (https://github.com/neovim/neovim/wiki/FAQ#how-can-i-change-the-cursor-shape-in-the-terminal)

@tarciozemel

This comment has been minimized.

Show comment
Hide comment
@tarciozemel

tarciozemel Aug 9, 2017

I'm still having this issue of unexpected weird chars every time I type some command or change for Insert Mode.

Sadly, I've already tried all the solutions shown here and nothing.

captura de tela de 2017-08-09 14 32 39

All this madness it's just ":x"...

  • Ubuntu 14.04.5 LTS
  • Terminal Guake 0.8.10
  • NVIM v0.2.1-dev

tarciozemel commented Aug 9, 2017

I'm still having this issue of unexpected weird chars every time I type some command or change for Insert Mode.

Sadly, I've already tried all the solutions shown here and nothing.

captura de tela de 2017-08-09 14 32 39

All this madness it's just ":x"...

  • Ubuntu 14.04.5 LTS
  • Terminal Guake 0.8.10
  • NVIM v0.2.1-dev
@justinmk

This comment has been minimized.

Show comment
Hide comment
@justinmk

justinmk Aug 9, 2017

Member

@tarciozemel #6997 should address your issue when it's merged soon.

Member

justinmk commented Aug 9, 2017

@tarciozemel #6997 should address your issue when it's merged soon.

@oppsig

This comment has been minimized.

Show comment
Hide comment
@oppsig

oppsig Nov 18, 2017

Also solved my problem with
export VTE_VERSION="100"

oppsig commented Nov 18, 2017

Also solved my problem with
export VTE_VERSION="100"

@ZelphirKaltstahl

This comment has been minimized.

Show comment
Hide comment
@ZelphirKaltstahl

ZelphirKaltstahl Nov 18, 2017

Question about this issue: Is it likely to be fixed in time, without users having to specify some variable like VTE_VERSION?

I've updated my NeoVim time and time again hoping it would be fixed, but maybe I am waiting for naught and there is no way it's simply going to work without having to set some variable?

(What does VTE_VERSION even do? Will it break other in terminal stuff?)

ZelphirKaltstahl commented Nov 18, 2017

Question about this issue: Is it likely to be fixed in time, without users having to specify some variable like VTE_VERSION?

I've updated my NeoVim time and time again hoping it would be fixed, but maybe I am waiting for naught and there is no way it's simply going to work without having to set some variable?

(What does VTE_VERSION even do? Will it break other in terminal stuff?)

@ydajwz123

This comment has been minimized.

Show comment
Hide comment
@ydajwz123

ydajwz123 Jan 27, 2018

The similar situation only occurs when I use 'sudo'. If I use nvim normally, everythin is ok. But if I use nvim with 'sudo' , changing mode(such as 'inserting mode, command mode) comes with a unexpected char 'q' (only one character 'q'). Is this the same as the problem you've disscused above?

ydajwz123 commented Jan 27, 2018

The similar situation only occurs when I use 'sudo'. If I use nvim normally, everythin is ok. But if I use nvim with 'sudo' , changing mode(such as 'inserting mode, command mode) comes with a unexpected char 'q' (only one character 'q'). Is this the same as the problem you've disscused above?

@teto

This comment has been minimized.

Show comment
Hide comment
@teto

teto Jan 27, 2018

Contributor

@ydajwz123 sudo changes your environment and the loaded config so it can be several things. You can :set guicursor= in the system config and overwrite it in your local one. See https://github.com/neovim/neovim/wiki/FAQ#nvim-shows-weird-symbols-2-q-when-changing-modes

Contributor

teto commented Jan 27, 2018

@ydajwz123 sudo changes your environment and the loaded config so it can be several things. You can :set guicursor= in the system config and overwrite it in your local one. See https://github.com/neovim/neovim/wiki/FAQ#nvim-shows-weird-symbols-2-q-when-changing-modes

@ydajwz123

This comment has been minimized.

Show comment
Hide comment
@ydajwz123

ydajwz123 Jan 27, 2018

@teto thanks, now I have a better understanding of how it working.

ydajwz123 commented Jan 27, 2018

@teto thanks, now I have a better understanding of how it working.

FlakM added a commit to FlakM/dotfiles that referenced this issue Mar 1, 2018

@teto

This comment has been minimized.

Show comment
Hide comment
@teto

teto May 12, 2018

Contributor

@kabasakalis $NVIM_TUI_ENABLE_CURSOR_SHAPE got removed a year ago (bootom of https://github.com/neovim/neovim/wiki/Following-HEAD)

Contributor

teto commented May 12, 2018

@kabasakalis $NVIM_TUI_ENABLE_CURSOR_SHAPE got removed a year ago (bootom of https://github.com/neovim/neovim/wiki/Following-HEAD)

@kabasakalis

This comment has been minimized.

Show comment
Hide comment
@kabasakalis

kabasakalis May 12, 2018

@teto Right, I don't have time to follow the changelog. And I noticed you already mentioned guicursor in a comment above, so I am deleting my comment.

kabasakalis commented May 12, 2018

@teto Right, I don't have time to follow the changelog. And I noticed you already mentioned guicursor in a comment above, so I am deleting my comment.

@jcarizza

This comment has been minimized.

Show comment
Hide comment
@jcarizza

jcarizza Jul 27, 2018

I also have the problem on Terminator and tmux. I had set the VTE_VERSION on my init.vim and fixed the problem:

let $VTE_VERSION="100"

jcarizza commented Jul 27, 2018

I also have the problem on Terminator and tmux. I had set the VTE_VERSION on my init.vim and fixed the problem:

let $VTE_VERSION="100"

hposca pushed a commit to hposca/dotfiles that referenced this issue Aug 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment