Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#472 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
lua, neovim, powershell
Domain
cli, tooling

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:

  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

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nvimdev/dashboard-nvim

All issues in nvimdev/dashboard-nvim

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.