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

Can't get the background color in neovim terminal emulator #3

Open
jiaming-shi opened this issue May 14, 2021 · 2 comments
Open

Can't get the background color in neovim terminal emulator #3

jiaming-shi opened this issue May 14, 2021 · 2 comments

Comments

@jiaming-shi
Copy link

From the documentation, we know that neovim embeds a VT220/xterm terminal emulator based on libvterm.
But, termbg currently can't get background color in neovim terminal emulator.

Environment:

  • Neovim version: v0.5.0-dev

Reproduce step:

  1. Open neovim without config file: nvim -u NONE
  2. Open terminal in neovim via :terminal
  3. Run cargo run in nvim terminal emulator

The output is:

Check terminal background color
  Term : XtermCompatible
  Color: detection failed Timeout { source: Timeout }
  Theme: detection failed Timeout { source: Timeout }
@dalance
Copy link
Owner

dalance commented May 17, 2021

libvterm may not support to query background color through OSC 11.
I tried like below, but no response.

$ printf "\x1b]11;?\x1b\\"

If libvterm doesn't support the query, termbg can't get background color.

@dalance
Copy link
Owner

dalance commented May 18, 2021

I tried to run neovim built with DEBUG=1, and got below:

libvterm: Unhandled OSC 11;?

This shows libvterm doesn't support OSC 11 query yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants