Git Product home page Git Product logo

Comments (8)

zgpio avatar zgpio commented on June 12, 2024 3

Same issue on windows cmd.exe
use nvim --clean to reproduce.

from neovim.

gpanders avatar gpanders commented on June 12, 2024 1

I'm guessing this is due to DECRQSS terminal escapes that aren't implemented by macOS terminal. Apparently alacritty/alacritty#7184.

The terminal should not print an escape sequence just because it's unimplemented. This is just Apple Terminal being terrible, as usual.

We disabled DECRQSS for Apple Terminal in #28453, but that won't work for a remote SSH session (the remote session doesn't know anything about the terminal emulator). We are also sendin XTGETTCAP and DECRQSS requests to determine truecolor support in _defaults.lua, where we don't have any guards for Apple Terminal.

A workaround in the meantime is to set COLORTERM=truecolor in your remote environment and also use set notermguicolors in your init file. Setting $COLORTERM this way will prevent Nvim from querying the terminal (it will assume that the terminal does support truecolor), and then disabling 'termguicolors' in your init file will disable it again.

from neovim.

justinmk avatar justinmk commented on June 12, 2024

I'm certain this is discussed in existing, closed issues.

from neovim.

clason avatar clason commented on June 12, 2024

Don't use Apple Terminal, it's plain broken. iTerm2 (3.5, the betas are release candidates now) will do in a pinch.

from neovim.

tronboto avatar tronboto commented on June 12, 2024

I'm also seeing this on PuTTY 0.81

from neovim.

gpanders avatar gpanders commented on June 12, 2024

If #29197 is applied then you can opt out of the DECRQSS/XTGETTCAP queries by setting $COLORTERM to any value other than truecolor or 24bit (e.g. 256 or 16).

from neovim.

tronboto avatar tronboto commented on June 12, 2024

Thanks for that PR, @gpanders . I see the PR mentions that setting $COLORTERM to truecolor or 24bit should prevent the terminal from being queried. However, I've found that when setting that, I no longer see $qm463;524742;73657472676266;73657472676262, which is great, but I still see +q4D73 pop up briefly. This is on PuTTY 0.81.

from neovim.

gpanders avatar gpanders commented on June 12, 2024

Thanks for that PR, @gpanders . I see the PR mentions that setting $COLORTERM to truecolor or 24bit should prevent the terminal from being queried. However, I've found that when setting that, I no longer see $qm463;524742;73657472676266;73657472676262, which is great, but I still see +q4D73 pop up briefly. This is on PuTTY 0.81.

That is the OSC 52 query. Set vim.g.clipboard = false in your init.lua to disable it.

from neovim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.