prati0100 / git-gui

Tcl/Tk based UI for Git. I am currently acting as the project's maintainer.
161 stars 87 forks source link

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

Closed patrikhuber closed 3 years ago

patrikhuber commented 4 years ago

Hi,

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

Original bug report below.

Thank you!

System Details

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 [mybranch +2 ~2 -0 !]>    <-- no colours, "weird" output. Have to press "enter" to get prompt to normal again.
~\MyProj [mybranch +2 ~2 -0 !]>    <-- nicely colourised

image

prati0100 commented 4 years ago

Thanks for reporting. Unfortunately I don't use Windows so I can't really say why this happens.

Looking at the microsoft/terminal bug report, I understand that this is apparently not a git-gui specific issue, but a cygwin issue instead. If so, I think this issue should be closed.

patrikhuber commented 4 years ago

Thanks for the reply @prati0100. Anyone working on Windows or who develops and tests the Windows builds...?

Thanks.

neilrees commented 3 years ago

Potential solution? https://github.com/microsoft/terminal/issues/4809#issuecomment-596249509

prati0100 commented 3 years ago

As far as I understand, this is a problem with cygwin, not git-gui itself so I'm closing this issue. Please feel free to reopen it if you feel otherwise.