Cygwin+tmux over ssh problems: open terminal failed: not a terminal

1

0

I can't get tmux to work inside an SSH session to a Windows machine with Cygwin:

USER@HOST ~ $ tmux
open terminal failed: not a terminal

GNU/Screen is working fine. I understand tmux is a bit pickier, it's also much nicer to work with. Any way to get tmux to work?

kqw

Posted 2015-09-01T09:31:33.087

Reputation: 1 781

Answers

1

Due to very limited support of Windows console API in cygwin, you have to run mintty.exe which emulates pty terminal. However, you will lose ability to run many other Windows console applications which were not designed for cygwin, but use Windows console API directly.

Maximus

Posted 2015-09-01T09:31:33.087

Reputation: 19 395

mintty looks interesting but seems a bit buggy on my system. Inside RDP it opens but tmux doesn't really work (it shows up but can't do anything inside). And over SSH mintty doesn't do much at all. – kqw – 2015-09-02T10:22:50.627

These are cygwin limitations. Why do you want to use tmux at all? – Maximus – 2015-09-02T13:04:42.053

>

  • tmux is great, GNU/Screen is quite limited in comparison (and the Windows GUI over RDP is torture). 2. there are some other issues that cause trouble within Emacs and sometimes even within vi, I'm hoping this would be resolved inside tmux.
  • < – kqw – 2015-09-02T16:16:46.817

    I mean, what features of tmux would you like to use? Do you run tmux on local or remote machine? – Maximus – 2015-09-02T20:15:31.520

    Running tmux on remote machine. I want to open multiple windows within 1 SSH session, I want to split the screen and I want to be able to reconnect a day later to things I was doing. GNU/Screen can do this but it's just not as smooth. – kqw – 2015-09-03T07:39:09.460

    0

    You can, if you have the "screen" package installed. You can call "screen -L", from bash, before running tmux. Or you can call it from cmd or from where you want to run the bash, bash.exe --login -c "screen -L", and after that "tmux".

    Daniel Frujina

    Posted 2015-09-01T09:31:33.087

    Reputation: 1