<div dir="ltr">Whoops, my own reply didn&#39;t get sent from earlier in the day. Echoing what John said:<div><br></div><div>===</div><div><br></div><div><span style="font-size:12.8px">Long story short, I think you need to ensure that cssh is running the `</span><a href="http://base16-default.dark.sh/" target="_blank" style="font-size:12.8px">base16-default.dark.sh</a><span style="font-size:12.8px">` script in each new terminal *before* it runs mosh.</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">You might need to make a wrapper around mosh that first runs <a href="http://base16-default.dark.sh/" target="_blank">base16-default.dark.sh</a> and then runs mosh.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The basic story is that the escape sequences that base16 uses rely not just on using the 256color escape sequences, but by actually changing the color palette itself. Mosh (and some other terminal emulators, including Terminal.app) doesn&#39;t support those escape sequences, but mosh won&#39;t screw up your color palette if you&#39;ve changed it before running mosh.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Hope this helps!</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Best regards,</div><div style="font-size:12.8px">Keith</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 7, 2016 at 7:56 PM, John Hood <span dir="ltr">&lt;<a href="mailto:cgull@glup.org" target="_blank">cgull@glup.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 06/07/2016 14:56, Niklaas Baudet von Gersdorff wrote:<br>
&gt; Hello Keith,<br>
&gt;<br>
&gt; thanks for your reply.<br>
&gt;<br>
&gt; Keith Winstein [2016-06-07 10:24 -0700] :<br>
&gt;<br>
&gt;&gt; (1) Does mosh work properly by itself (forgetting clusterssh for the<br>
&gt;&gt; moment)?<br>
&gt; I does so perfectly. I use it for my everyday work on the same server<br>
&gt; with the same set-up without any problems.<br>
&gt;<br>
&gt; Also, I don&#39;t get wrong colors with ssh+clusterssh. I only get wrong<br>
&gt; colors with mosh+clusterssh. I might be wrong but that made me suspect<br>
&gt; that it&#39;s related with mosh (and not something else).<br>
</span>The base16 scripts rely on an obscure XTerm feature-- the OSC<br>
change-color commands.  Mosh doesn&#39;t support those commands, or pass<br>
them through.<br>
<br>
My best guess is that you have a base16 script set up in your shell<br>
profile/login scripts on both client and server.  When you use plain<br>
ssh, everything is fine, because base16 runs both when you start the<br>
client XTerm and when you login to the remote server.  When you use<br>
plain Mosh, everything is fine-- because base16 runs when you start the<br>
client XTerm, and the base16 invocation on the server is essentially<br>
discarded by Mosh.  When you use cssh with ssh, everything is fine--<br>
cssh starts an XTerm invoking ssh and base16 does not get run there, but<br>
the remote server runs base16 and it&#39;s passed through to the XTerm.<br>
When you use cssh with mosh, it breaks-- base16 is not run locally on<br>
the new XTerm and the server&#39;s invocation is discarded.<br>
<br>
Unfortunately, implementing this feature is going to be pretty low on<br>
the priority list-- you&#39;re the first person to run into this issue that<br>
I know of.  A possible workaround is to write a wrapper script that<br>
invokes the base16 script, then runs mosh.  Use that as the ssh command<br>
in your .clusterssh/config file.  That way, when cssh starts the XTerm,<br>
the base16 script is always run locally.  You might even find benefit in<br>
doing this for ssh, ignoring mosh.<br>
<br>
You could also investigate XTerm&#39;s XTerm.vt100.color* resources,<br>
documented in the man page, which appear to have the needed<br>
functionality.  X resources are horribly archaic, but they should work<br>
reliably for any XTerm you start without requiring any scripting.<br>
<br>
Regards,<br>
<br>
  --jh<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
mosh-users mailing list<br>
<a href="mailto:mosh-users@mit.edu">mosh-users@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/mosh-users" rel="noreferrer" target="_blank">http://mailman.mit.edu/mailman/listinfo/mosh-users</a><br>
</div></div></blockquote></div><br></div>