domingo, 3 de janeiro de 2016

ConEmu with CygWin and TMUX - open terminal failed: not a terminal

This days, I was surprised by ConEmu. I had used TMUX for a long time on Ubuntu, but this days, when I needed use it on Cygwin, It caught me off guard. When typed tmux, I got the following error:

$ tmux
open terminal failed: not a terminal

This occur because ConEmu, at its installation setup, create a menu entry to start Cygwin with this task launching command:

set CHERE_INVOKING=1 & %ConEmuDrive%\cygwin\bin\sh.exe --login -i -new_console:C:"%ConEmuDrive%\cygwin\Cygwin.ico"

This command executes sh.exe instead of mintty.exe, the default Cygwin terminal.

To solve this problem, just change the task launching command to:

C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico - -new_console:C:"%ConEmuDrive%\cygwin\Cygwin.ico"

Your Cygwin installation path may be different from mine, that is 'C:\cygwin\bin\mintty.exe'. So, You must change it if your path differs.

Nenhum comentário:

Postar um comentário