ANSI-coloured header from from preview doesn't render correctly in Powershell 7
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Reproduce the issue with the linked lua/plugins/splash.lua config in Powershell 7, then compare the dashboard header with the dashboard-ansi.txt file rendered by cat in the Neovim terminal. Trace how the splash header handles ANSI escape sequences and confirm that the header renders the same as cat in Powershell, WSL Bash, and ZSH.
Written by the indexing model from the issue text.
Description
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:
- Run Neovim with the linked config in Powershell 7
- Notice the splash art is corrupted
- Open the Neovim terminal
catthedashboard-ansi.txtfile in the root of the repository- 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
Incorrect rendering in Neovim header w/ Powershell 7
Correct rendering in Neovim header w/ WSL Ubuntu
Correct rendering in Powershell 7 w/ cat command
- Dominant language
- Lua
- Stars
- 2.9k
- Forks
- 201
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nvimdev/dashboard-nvim
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
nvimdev/dashboard-nvim#534 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
nvimdev/dashboard-nvim#480 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nvimdev/dashboard-nvim#402 · 2 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 38/100
nvimdev/dashboard-nvim#523 · 2 comments · 3 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
nvimdev/dashboard-nvim#521 ·
All issues in nvimdev/dashboard-nvim
Similar issues
-
Zenmap bugOpenZenmap
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
[BUG] [25.12.5]Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
pterodactyl/game-eggs#637 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
koreader/koreader#16115 · 3 comments ·
Maintainers usually reply within 1 day