-
Notifications
You must be signed in to change notification settings - Fork 748
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
Mosh client passes xterm-color to server as xterm #446
Comments
Mosh always advertises one of Contrary to popular belief, So why do you think you need |
More looks at TERM than just mosh, though. For example, the default .bashrc in the debian/ubuntu skel looks specifically for xterm-color when setting $PS1, including the ANSI escape sequences if it's there and omitting them if it's not. As a result, installing mosh on a machine and allowing users to see their color prompt requires editing the .bashrc for all users to support a color prompt for xterm|xterm-color. It's not the end of the world, but it is an annoyance considering this isn't something to worry about when using ssh directly. |
Yes, Ubuntu’s default |
Great explanation. This does appear to be more of a bug with Ubuntu than anything else. With that said, though, is it Mosh's responsibility to enforce that? As the TERM is set by the physical terminal emulator and pushed to remote via SSH, keeping that same functionality and having mosh use the current TERM setting may be the most intuitive way forward regardless of Ubuntu's bug. Unless mosh relies on the spec being defined by TERM, of course, in which case that would not be appropriate. |
Yes, it’s Mosh’s responsibility. Mosh doesn’t work like SSH. The Mosh server is itself a terminal, because it must maintain the terminal state independently from the client in order to do efficient state synchronization. Like any other terminal, Mosh has a responsibility to set If the Mosh server were to copy the value of |
Might be helpful to mention that All of these programs act similarly in this respect. |
Situation hasn't changed -- Mosh behaves like screen and tmux. |
Max OS X 10.8.3 (mosh 1.2.4 from zsh) connecting to Ubuntu 12.04 (mosh 1.2.4 on bash):
However, if I change it from xterm-color...
I can't seem to get
xterm-color
to pass without it being forced to plainxterm
.Edit: Note that, connecting between the same machines using standard ssh, I see xterm-color on the remote end.
The text was updated successfully, but these errors were encountered: