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

Incorrect coloring on built-in terminal #13036

Open
pta2002 opened this issue Oct 3, 2020 · 4 comments
Open

Incorrect coloring on built-in terminal #13036

pta2002 opened this issue Oct 3, 2020 · 4 comments
Labels
bug issues reporting wrong behavior terminal built-in :terminal or :shell

Comments

@pta2002
Copy link

pta2002 commented Oct 3, 2020

  • nvim --version: NVIM v0.5.0-712-g4a996bc43
  • vim -u DEFAULTS (version: ) behaves differently? No
  • Operating system/version: Fedora 33
  • Terminal name/version: Happened in every terminal I tested (gnome-terminal and kitty)
  • $TERM: xterm-256color

Steps to reproduce using nvim -u NORC

nvim -u NORC
:terminal
cd (some project built with rust's rocket)
cargo run

Actual behaviour

image
The coloring on "Mounting /auth:" is offset, compared to here.

Expected behaviour

image

The bare terminal displays correctly.

Note I have only experienced this with this particular output, but it will probably happen elsewhere too.

@pta2002 pta2002 added the bug issues reporting wrong behavior label Oct 3, 2020
@ThomasFeher
Copy link
Sponsor Contributor

Could this be a duplicate of #10836? I.e., does setting environment variable
COLORTERM='truecolor' manually fix it?

@pta2002
Copy link
Author

pta2002 commented Oct 3, 2020

I set the environment variable inside :terminal and ran the cargo command, and this still happens.

@erw7
Copy link
Contributor

erw7 commented Oct 5, 2020

@pta2002 #13041 will solve your problem? In my environment, depending on the presence or absence of #13041, this is what happens.

nvim -u NORC
:set ambiwidth=double
:terminal
i
printf "\x1b[36m012345\x1b[30m\x1b[42mabcdef\x1b[m"

#13041 applied.

patched

#13041 Not applicable.

unpatched

@pta2002
Copy link
Author

pta2002 commented Oct 5, 2020

I can confirm that this fixed the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior terminal built-in :terminal or :shell
Projects
None yet
Development

No branches or pull requests

3 participants