[mosh-devel] Supporting iTerm2 profiles on MacOS

Marius Kjeldahl marius.kjeldahl at gmail.com
Wed Nov 27 10:51:39 EST 2024


iTerm2 is a popular Mac terminal application, typically used as a
better terminal than the default one that comes with MacOS. One of the
things it has is Profiles, which allows custom terminal settings. This
makes it possible to have a deepish red background for instance when
doing work on live servers, but there's lots of possibilities.

iTerm2 already has tmux support and also works great with ssh, making
it possible to auto activate profiles in specific directories or even
remote servers. It does this by either recognizing things like
directory or server name. It is also possible to activate profiles by
echoing certain escape sequences when logging in to remote servers.
Effectively emitting "setProfile XYZ".

With mosh, none of this works. I haven't dug deeply into it, but most
likely there is some conflicts with mosh's own terminal handling or
something. But people have came up with fixes, like this one:

https://github.com/hartzell/homebrew-hartzell/commit/f8d18f15adfc06790758e4d0ce03abde08e39cfe

Any chance to get something like that included in future mosh versions?

Thanks in advance,

Marius K.


More information about the mosh-devel mailing list