Skip to content

Closing vim changes colors for previous prompts #3794

@heaths

Description

@heaths

Environment


Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18362.0 Microsoft Windows NT 10.0.18362.0

Windows Terminal version (if applicable): N/A

Other Software:
vim 8.1

Steps to reproduce

  1. Use a colored prompt (like powerline) with colors about the normal 16 color palette. For example, for cmd something like: PROMPT $e[38;5;231;48;5;55m$$$s$e[0m
  2. Open vim: vim
  3. Close vim: :q

Expected behavior

Previous colors stay the same.

Actual behavior

Colors from previous prompts that were rendered seem to resort to the 16-color palette, e.g. the purple in the example above is now magenta. Light blue turns to blue, etc.

To note, this seems to happen with any conhost, but it doesnt reproduce if I run WSL in cmd/pwsh then open vim in wsl. However, if I open vim.exe in WSL, it launches okay but upon closing the previous history is completely erased.

Perhaps this is an error with Win32 vim, but perhaps the color palette shouldn't be allowed to be changed by any program that was written when conhost supported only 16 colors. Just a thought.

PowerShellCore2019-12-0111-05-23

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-Tag-FixDoesn't match tag requirementsResolution-ExternalFor issues that are outside this codebase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions