-
Notifications
You must be signed in to change notification settings - Fork 729
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
Support 256 colors #3
Comments
This is what keeps me from using mosh for barnowl, so I'd be interested in a fix. |
Hmm, why does it keep you from using barnowl? Do you really want the 256 colors, or is something broken? |
(Some people seem to have added a line to their .screenrc that tells screen to modify the "xterm" terminfo entry to make it support 256color mode. The line looks like "termcapinfo xterm 'Co#256[...]". The byobu people sometimes mistakenly recommend this, but it's terribly misguided -- "xterm" only supports the ANSI 8 colors, and this is what mosh advertises. If you want 256color mode, it's fine to use "xterm-256color", but please don't modify the xterm entry, as it will give lousy results on terminals that implement it. I wonder if this is the problem you're having...?) |
I had a line like that in my .screenrc (barnowl-256color doesn't seem to display all 256 colors without it). Removing it reverted to the 8 ANSI colors. I use 50-60 colors at a time in my barnowl and have gotten used to the differentiation this provides. |
Instead of putting that in your I agree, though, that I’d use mosh more if it actually supported 256 colors. |
I pushed tentative support for 256 colors to the 256color branch. (It assumes a 256-color local terminal.) Could you please test and let me know if it works for your applications? I put the server on linerva and you can get it with --server='athrun mosh_project mosh-server-256-beta' |
Works for me. Thanks! |
Edit: DOH! I was setting the $TERM on the server but not my local machine. I found my problem using Still having problems getting this to work. I tried compiling the server from github and installing the latest client for mac (via the pkg). I have my $TERM set to xterm-256color (I also tried screen-256color and screen-256color-bce). When running a colortest I'm only seeing 16 colors. If I connect directly via ssh I see the full 256 colors in the colortest. I've dug around and the only place I can find mention of 256 color support is in some commit messages from a month ago. Any suggestions? Thanks! |
Because 256 colors ought to be enough for anybody.
The text was updated successfully, but these errors were encountered: