Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.57k stars 573 forks source link

ngrok issue #2223

Open sryze opened 3 years ago

sryze commented 3 years ago

Versions

ConEmu build: 201124 x64 OS version: Windows 7 x64 Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): Git Bash Git for Windows version: git version 2.29.2.windows.2 ngrok version 2.3.35

Problem description

When running ngrok inside Git Bash, it does not display anything.

This happens on Windows 7 inside ConEmu. But it does work when:

I think it might have something to do with ConEmu or Git Bash but I'm don't know which one is to blame... If this issue is not caused by ConEmu, feel free to close.

Steps to reproduce

  1. Install ngrok, e.g. via Chocolatey: choco install ngrok
  2. Open a Git Bash tab
  3. Run ngrok http 8080 (can be any other port)

Actual results

ngrok starts and actually works (I can connect), but the terminal UI does not show up.

image

Expected results

image

Maximus5 commented 3 years ago

I wonder, why almost every screenshot in issues does not contain status bar

sryze commented 3 years ago

Here you go:

image

Maximus5 commented 3 years ago

How do you run bash? What is the command line in your task?

sryze commented 3 years ago
set "PATH=%ConEmuDir%\..\Git\usr\bin;%PATH%" & %ConEmuDir%\..\Git\git-cmd.exe --no-cd --command=%ConEmuBaseDirShort%\conemu-msys2-64.exe /usr/bin/bash.exe -l -i -new_console:p
Maximus5 commented 3 years ago

Don't you have the same problem in mintty?

sryze commented 3 years ago

If I start ngrok from C:\Program Files\Git\usr\bin\mintty.exe - yes, same problem

If I start it from git-bash.exe - no such issue

Is it possible to run git-bash.exe from within ConEmu?

sryze commented 3 years ago

Using "%ProgramFiles%\Git\bin\sh.exe" --login -i solved the issue for me, although now there is no git bash icon in the tab bar, but I can live with that

Edit:

Actually "%ProgramFiles%\Git\git-bash.exe" works too

Maximus5 commented 3 years ago

git-bash.exe is not a shell or terminal at all. It's just a bootstrapper for git, and it may run either mintty or conhost, either bash or cmd.

You can configure your task to match your preference. You may change the tab icon there. Please take a look at the docs.