Skip to content

ASCI Image Preview Messed up in PowerShell, Windows Terminal #1392

@njdldkl666699

Description

@njdldkl666699

Describe the bug
Use PowerShell 7 in Windows Terminal, and preview the image, they are all messed up.
But using Git Bash to preview the image, it is normal.

To Reproduce
Steps to reproduce the behavior:

  1. Prepare the same Nerd Font, and controll all other variables same.
  2. Open PowerShell 7 in Windows Terminal, and spf, preview any image. It messed up. Use ssh to connect to linux, images also messed up.
  3. Open Git Bash, ssh, and preview the same image, it is normal. In the screenshot I used ssh because on Windows the TUI messed up.

Expected behavior
ASCI Image preview should be normal just like in the Git Bash.

Screenshots

Windows Terminal no SSH

Image

Windows Terminal with SSH

Image

Git Bash with SSH

Image

System information (please complete the following information):

  • OS: Windows
  • Version Windows 10 22H2 19045.7058
  • superfile Version 1.5.0
  • PowerShell Version: 7.6.0
  • Windows Terminal Version: 1.24.10621.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-WindowsIssue is related to windows only, and doesn't affect Linux/MacbugSomething isn't workingimage-preview

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions