Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iterm2's deep tmux recognition and mosh #640

Closed
mprobst opened this issue Jun 24, 2015 · 8 comments

Comments

@mprobst
Copy link

commented Jun 24, 2015

I'm usually running a ssh terminal within iTerm2, and use iTerm2's features to recognize a tmux session and render its UI natively (i.e. Mac OS tabs/windows instead of console tabs/windows). My command line is:

ssh [host] 'tmux -CC new-session -AD my-session-name'

Admittedly I don't really understand how that works, but it certainly doesn't when using mosh.

mosh [host] 'tmux -CC new-session -AD my-session-name'
  • This connects, and then immediately closes the connection again.
  • Connecting and running tmux -CC ... separately does print out tmux' control commands, but doesn't render them, i.e. iTerm2 doesn't recognize them.
  • Just running plain tmux works, but doesn't give the deep integration.
@cgull

This comment has been minimized.

Copy link
Member

commented Jun 26, 2015

This, unfortunately, isn't going to work. Mosh is a virtual terminal emulator (much like tmux, actually), and doesn't pass data unaltered from server to client (it updates/redraws what you see on the screen instead). So it can't be used as a conduit for tmux in control mode.

@cgull cgull closed this Jun 26, 2015

@joeshaw

This comment has been minimized.

Copy link

commented Sep 15, 2015

@mprobst you might be interested in following #41 and #120 which both would need a reliable octet stream implementation to be implemented. tmux's control mode could conceivably also run over this. Also see https://www.mail-archive.com/mosh-devel@mit.edu/msg00304.html

@mprobst

This comment has been minimized.

Copy link
Author

commented Sep 15, 2015

Thanks for the pointer @joeshaw, subscribed there.

@prologic

This comment has been minimized.

Copy link

commented Oct 7, 2015

@mprobst Are you planning on attempting to work on this ITerm2+mosh+tmux integration? I've subscribed myself to #41 and #120 and read through the mailing list thread; I haven't seen any efforts in this space so far?

@mprobst

This comment has been minimized.

Copy link
Author

commented Oct 7, 2015

Sorry, I'm only a user of iTerm and won't have the cycles (nor expertise
really) to get this done.

James Mills notifications@github.com schrieb am Di., 6. Okt. 2015, 22:23:

@mprobst https://github.com/mprobst Are you planning on attempting to
work on this ITerm2+mosh+tmux integration? I've subscribed myself to #41
#41 and #120
#120 and read through the
mailing list thread; I haven't seen any efforts in this space so far?


Reply to this email directly or view it on GitHub
#640 (comment).

@prologic

This comment has been minimized.

Copy link

commented Oct 7, 2015

Ahh sorry I did not realize; I'd still like to see what we can do to get this done though! I'm only a user too and I'm sure iTerm2 would require some language skills I probably don't have (ObjC?) :)

@rbrewer

This comment has been minimized.

Copy link

commented Aug 23, 2016

Have you tried the iTerm 2, tmux, and mosh solution?

@mprobst

This comment has been minimized.

Copy link
Author

commented Aug 23, 2016

@rbrewer that does not include support for tabs, windows, etc, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.