2010/3/8 Edward Ned Harvey <solaris at nedharvey.com>:
>> I'm using emacs in coloring mode in remote (from OS X) ssh terminal
>> sessions for quite some time, and from the start have been suffering
>
> I don't know about emacs specifically, but for everything else, here's what
> I did:
>
> On windows, I putty in, and echo $TERM. ?I think it was something like
> "xterm"
> On mac, I ssh in, and echo $TERM. ?I think it was something like
> "color-xterm" but it didn't work properly.
>
> So I just set the TERM to "xterm" like it is in putty, and voila. ?This is
> backwards, I know. ?But it worked for me.

Thanks for the hint. Unfortunately setting TERM to xterm makes emacs
run without color suport. At least I wasn't able to make its ouput
colorized in any way.

I guess the problem lies in "setb" of the xterm-color terminfo file.
When diffing between the Linux and the osol one can see that osol one
does some funky things there:
$ infocmp -d xterm-color.linux xterm-color.osol | grep setb
        setb: 
'NULL','\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m'.

Now that I've got a working config with the Linux terminfo xterm-color
file in place, I haven't tried modifying the osol one via infocmp |
sed s/bad-setb/good-setb/ | tic. In the end I guess that would solve
the issue.

Cheers, Frank

Reply via email to