Skip to content

Garbled output when typing "git gui" in PowerShell 6 with posh-git #34

@patrikhuber

Description

@patrikhuber

Hi,

@dahlbyk advised that this might likely be a bug in git-gui. I initially posted this in the posh-git repo, dahlbyk/posh-git#738. This also got linked as potentially related microsoft/terminal#4809.

Original bug report below.

Thank you!

System Details

  • posh-git version/path: 1.0.0 beta3 ~\Documents\PowerShell\Modules\posh-git\1.0.0
  • PowerShell version: 6.2.4
  • git version 2.25.0.windows.1
  • OS: Microsoft Windows NT 10.0.18362.0

Issue Description

posh-git seems to work fine overall. However when typing git gui, the git gui window opens, but on the powershell prompt, the encoding of the characters is outputted and the cursor stays on that line. Only after pressing "Enter", the prompt becomes "normal" again.

~\MyProj [mybranch +2 ~2 -0 !]> git gui    <-- nicely colourised
~\MyProj �[93m[�[0m�[96mmybranch�[0m�[31m�[49m +2�[0m�[31m�[49m ~2�[0m�[31m�[49m -0�[0m�[31m !�[0m�[93m]�[0m>    <-- no colours, "weird" output. Have to press "enter" to get prompt to normal again.
~\MyProj [mybranch +2 ~2 -0 !]>    <-- nicely colourised

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions