mskyaxl / wsl-terminal

Terminal emulator for Windows Subsystem for Linux (WSL)
MIT License
3.12k stars 158 forks source link

input is not a tty #81

Closed CatCodeMe closed 6 years ago

CatCodeMe commented 6 years ago

git-bash works well, but wsl failed.

image image

goreliu commented 6 years ago

You can try ./docker.exe ... or /init ./docker.exe ... in Build 17618, maybe it has been fixed:

Introduce pseudoconsole functionality for NT interop [GH 988, 1366, 1433, 1542, 2370, 2406].
goreliu commented 6 years ago

Or you can install winpty to wsl-terminal. Download https://github.com/rprichard/winpty/releases/download/0.4.3/winpty-0.4.3-cygwin-2.8.0-x64.tar.gz, put winpty.dll winpty.exe winpty-agent.exe winpty-debugserver.exe in wsl-terminal/bin, and then use /mnt/c/path/to/wsl-terminal/bin/mintty.exe /bin/winpty.exe docker.exe ....

tmp

CatCodeMe commented 6 years ago

Thanks ! It works.