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

vim overrides the terminal color scheme #6457

Closed
Tyriar opened this issue May 18, 2016 · 2 comments
Closed

vim overrides the terminal color scheme #6457

Tyriar opened this issue May 18, 2016 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug terminal Integrated terminal issues verified Verification succeeded
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented May 18, 2016

Integrated terminal master issue: #143

Steps to Reproduce:

  1. Toggle terminal
  2. Launch vim (color scheme changes)
  3. Exit vim (vim's changed color scheme remains)
@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug terminal Integrated terminal issues labels May 18, 2016
@Tyriar Tyriar self-assigned this May 18, 2016
@romgrk
Copy link

romgrk commented Jun 3, 2016

I might be wrong, but from what I recall/understood from recent discussions in neovim:

  • In some terminal emulators, the colors can be set by the program; however, there can be at most n colors, where n is usually 16 or 256.
  • Some vim colorschemes take advantage of this to approximate #RRGGBB colors, by mapping colors to terminal color-codes [0-255].
  • Vim is supposed to save the colors from termcap/terminfo upon entering, and restore them upon leaving.

@Tyriar
Copy link
Member Author

Tyriar commented Jun 13, 2016

This is fixed in latest, likely to do with colors 16-255 not being defined previously.

@Tyriar Tyriar closed this as completed Jun 13, 2016
@Tyriar Tyriar added this to the June 2016 milestone Jun 13, 2016
@Tyriar Tyriar changed the title Why are integrated terminal colors reset when vim starts? vim overrides the terminal color scheme Jul 1, 2016
@Tyriar Tyriar added the verified Verification succeeded label Jul 1, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug terminal Integrated terminal issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

2 participants