Skip to content

iterm2's deep tmux recognition and mosh #640

Closed

Description

@mprobst

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.

Activity

  1. cgull commented on Jun 26, 2015

    @cgull
    Member

    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.

  2. joeshaw commented on Sep 15, 2015

    @joeshaw

    @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/[email protected]/msg00304.html

  3. mprobst commented on Sep 15, 2015

    @mprobst
    Author

    Thanks for the pointer @joeshaw, subscribed there.

  4. prologic commented on Oct 7, 2015

    @prologic

    @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?

  5. mprobst commented on Oct 7, 2015

    @mprobst
    Author

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

    James Mills [email protected] 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).

  6. prologic commented on Oct 7, 2015

    @prologic

    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?) :)

  7. rbrewer commented on Aug 23, 2016

    @rbrewer
  8. mprobst commented on Aug 23, 2016

    @mprobst
    Author

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions