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

ANSI-coloured header from from preview doesn't render correctly in Powershell 7 #472

Open
TheRealGLH opened this issue Jul 28, 2024 · 0 comments

Comments

@TheRealGLH
Copy link

Describe the bug
I've set the header to load from a text file with ANSI escape sequences for the colors, but it seems to get corrupted when opening Neovim in Powershell 7. Powershell 7 can actually render the file correctly with cat, even in the Neovim terminal itself; the corrupted look only happens in the header and only in Powershell.
I've tested this same config both with WSL Ubuntu (in the same Windows Terminal app) and in ZSH in iTerm2 where it seems to work as expected.
To Reproduce
Steps to reproduce the behavior:

  1. Run Neovim with the linked config in Powershell 7
  2. Notice the splash art is corrupted
  3. Open the Neovim terminal
  4. cat the dashboard-ansi.txt file in the root of the repository
  5. Notice how it renders perfectly fine in Powershell, even inside of Neovim

Expected behavior
I expected it to render exactly as it does with the cat command, the way it also does in ZSH and WSL Bash.

Screenshots

image
Incorrect rendering in Neovim header w/ Powershell 7

image
Correct rendering in Neovim header w/ WSL Ubuntu

image
Correct rendering in Powershell 7 w/ cat command

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

1 participant