lab icon indicating copy to clipboard operation
lab copied to clipboard

Add observation on the docs about using winpty on Git Bash for Windows

Open spidey opened this issue 5 years ago • 4 comments

lab needs some special access to the terminal on Windows that the standard bash/mintty can't handle. That's the same issue with Python and other terminal applications running on Windows.

When adding the "alias git=lab" on ~/.bashrc on Windows, the shell hangs on initialization. Adding the winpty prefix will solve it, although adding a slight delay on git commands (including the git_ps1 command to setup the PS1 var).

spidey avatar Nov 18 '18 20:11 spidey

Can you clarify what this means: "Adding the winpty prefix will solve it"

claytonrcarter avatar Nov 18 '18 20:11 claytonrcarter

winpty is a tool to make Windows programs, such as Python and lab, work under mintty and other terminal emulators that understand ANSI escape codes. https://github.com/rprichard/winpty This question on StackOverflow explain it in a little more detail (but not too much): https://stackoverflow.com/questions/48199794/winpty-and-git-bash

spidey avatar Nov 19 '18 03:11 spidey

@spidey Is it still a problem? I can use lab normally via PowerShell. Are there any use cases you can point out for reproducing the issue?

bmeneg avatar Jun 22 '21 17:06 bmeneg

Ok, my bad... it's an Git Bash for Windows specific issue (read the issue title 🤦‍♂️) But still, I wasn't able to reproduce the issue. Things seems to run as expected from what I tried.

bmeneg avatar Jun 22 '21 18:06 bmeneg