2.3.2.1: Colors wrong in vim in xterm
When running vim in xterm in 2.3.2.1, the colors aren't being represented correctly for me. A screenshot can be seen here: http://logicaldiscord.com/images/X11_2.3.2.1_vim_color_issue.png The xterm on the left is showing the "incorrect" colors and the rxvt window on the right is showing what the colors are supposed to (well, used to) look like. I did not see this issue in 2.3.2_rc3, so it's definitely something that happened between then and now. I also tried both xterm 237 and 238 (237 was installed via MacPorts) and had the same results. Unfortunately, I did not try rc4, rc5 or 2.3.2 so I can't narrow it down much further than than after 2.3.2_rc3. Also seems to happen if I ssh from a Linux system with X11 forwarding and run an xterm from my Mac, displaying on the Linux X server. - Chris
I just tested this on my MacBook Pro which was running 2.3.2_rc5 and the colors were correct. Upgraded to 2.3.2.1 and the colors were wrong. So, it was definitely a change in 2.3.2 or 2.3.2.1. - Chris On Mon, Jan 5, 2009 at 3:09 PM, Chris Linstid <clinstid@gmail.com> wrote:
When running vim in xterm in 2.3.2.1, the colors aren't being represented correctly for me. A screenshot can be seen here:
http://logicaldiscord.com/images/X11_2.3.2.1_vim_color_issue.png
The xterm on the left is showing the "incorrect" colors and the rxvt window on the right is showing what the colors are supposed to (well, used to) look like. I did not see this issue in 2.3.2_rc3, so it's definitely something that happened between then and now. I also tried both xterm 237 and 238 (237 was installed via MacPorts) and had the same results. Unfortunately, I did not try rc4, rc5 or 2.3.2 so I can't narrow it down much further than than after 2.3.2_rc3.
Also seems to happen if I ssh from a Linux system with X11 forwarding and run an xterm from my Mac, displaying on the Linux X server.
- Chris
which means it's a change between 237 and 238 of xterm. On Jan 5, 2009, at 12:32, Chris Linstid wrote:
I just tested this on my MacBook Pro which was running 2.3.2_rc5 and the colors were correct. Upgraded to 2.3.2.1 and the colors were wrong. So, it was definitely a change in 2.3.2 or 2.3.2.1.
- Chris
On Mon, Jan 5, 2009 at 3:09 PM, Chris Linstid <clinstid@gmail.com> wrote:
When running vim in xterm in 2.3.2.1, the colors aren't being represented correctly for me. A screenshot can be seen here:
http://logicaldiscord.com/images/X11_2.3.2.1_vim_color_issue.png
The xterm on the left is showing the "incorrect" colors and the rxvt window on the right is showing what the colors are supposed to (well, used to) look like. I did not see this issue in 2.3.2_rc3, so it's definitely something that happened between then and now. I also tried both xterm 237 and 238 (237 was installed via MacPorts) and had the same results. Unfortunately, I did not try rc4, rc5 or 2.3.2 so I can't narrow it down much further than than after 2.3.2_rc3.
Also seems to happen if I ssh from a Linux system with X11 forwarding and run an xterm from my Mac, displaying on the Linux X server.
- Chris
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
Nevermind, you are correct. I reinstalled xterm 237 via MacPorts and it does not exhibit the color issue. - Chris On Tue, Jan 6, 2009 at 12:25 AM, Jeremy Huddleston <jeremyhu@apple.com>wrote:
which means it's a change between 237 and 238 of xterm.
On Jan 5, 2009, at 12:32, Chris Linstid wrote:
I just tested this on my MacBook Pro which was running 2.3.2_rc5 and the
colors were correct. Upgraded to 2.3.2.1 and the colors were wrong. So, it was definitely a change in 2.3.2 or 2.3.2.1.
- Chris
On Mon, Jan 5, 2009 at 3:09 PM, Chris Linstid <clinstid@gmail.com> wrote:
When running vim in xterm in 2.3.2.1, the colors aren't being represented
correctly for me. A screenshot can be seen here:
http://logicaldiscord.com/images/X11_2.3.2.1_vim_color_issue.png
The xterm on the left is showing the "incorrect" colors and the rxvt window on the right is showing what the colors are supposed to (well, used to) look like. I did not see this issue in 2.3.2_rc3, so it's definitely something that happened between then and now. I also tried both xterm 237 and 238 (237 was installed via MacPorts) and had the same results. Unfortunately, I did not try rc4, rc5 or 2.3.2 so I can't narrow it down much further than than after 2.3.2_rc3.
Also seems to happen if I ssh from a Linux system with X11 forwarding and run an xterm from my Mac, displaying on the Linux X server.
- Chris
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
Also confirmed the same problem on FreeBSD with xterm 238. I guess I need to go bug X.org. :) - Chris On Tue, Jan 6, 2009 at 11:27 AM, Chris Linstid <clinstid@gmail.com> wrote:
Nevermind, you are correct. I reinstalled xterm 237 via MacPorts and it does not exhibit the color issue.
- Chris
On Tue, Jan 6, 2009 at 12:25 AM, Jeremy Huddleston <jeremyhu@apple.com>wrote:
which means it's a change between 237 and 238 of xterm.
On Jan 5, 2009, at 12:32, Chris Linstid wrote:
I just tested this on my MacBook Pro which was running 2.3.2_rc5 and the
colors were correct. Upgraded to 2.3.2.1 and the colors were wrong. So, it was definitely a change in 2.3.2 or 2.3.2.1.
- Chris
On Mon, Jan 5, 2009 at 3:09 PM, Chris Linstid <clinstid@gmail.com> wrote:
When running vim in xterm in 2.3.2.1, the colors aren't being
represented correctly for me. A screenshot can be seen here:
http://logicaldiscord.com/images/X11_2.3.2.1_vim_color_issue.png
The xterm on the left is showing the "incorrect" colors and the rxvt window on the right is showing what the colors are supposed to (well, used to) look like. I did not see this issue in 2.3.2_rc3, so it's definitely something that happened between then and now. I also tried both xterm 237 and 238 (237 was installed via MacPorts) and had the same results. Unfortunately, I did not try rc4, rc5 or 2.3.2 so I can't narrow it down much further than than after 2.3.2_rc3.
Also seems to happen if I ssh from a Linux system with X11 forwarding and run an xterm from my Mac, displaying on the Linux X server.
- Chris
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
_______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
On 06Jan2009 11:50, Chris Linstid <clinstid@gmail.com> wrote: | Also confirmed the same problem on FreeBSD with xterm 238. I guess I need | to go bug X.org. :) You could put specific XTerm.vt100.color0, color1, etc settings in your .Xdefaults file and not be bothered in future if they change the defaults. Check out the section "VT100 Widget Resources" in man xterm. You might also find it useful to examine the file: /usr/X11/lib/X11/app-defaults/XTerm-color for the MacOSX xterm or: /opt/local/lib/X11/app-defaults/XTerm-color for the MacPorts version. I presume Fink's version is in the same place but with /sw instead of /opt/local. In fact, changes to that file probably underly the changes you see. Cheers, -- Cameron Simpson <cs@zip.com.au> DoD#743 http://www.cskk.ezoshosting.com/cs/ The impossible we understand right away - the obvious takes a little longer.
Thanks for the tips Cameron, I'll take a look. Do you think it's just a matter of 238 changing the defaults? - Chris On Tue, Jan 6, 2009 at 6:29 PM, Cameron Simpson <cs@zip.com.au> wrote:
On 06Jan2009 11:50, Chris Linstid <clinstid@gmail.com> wrote: | Also confirmed the same problem on FreeBSD with xterm 238. I guess I need | to go bug X.org. :)
You could put specific XTerm.vt100.color0, color1, etc settings in your .Xdefaults file and not be bothered in future if they change the defaults. Check out the section "VT100 Widget Resources" in man xterm.
You might also find it useful to examine the file: /usr/X11/lib/X11/app-defaults/XTerm-color for the MacOSX xterm or: /opt/local/lib/X11/app-defaults/XTerm-color for the MacPorts version. I presume Fink's version is in the same place but with /sw instead of /opt/local.
In fact, changes to that file probably underly the changes you see.
Cheers, -- Cameron Simpson <cs@zip.com.au> DoD#743 http://www.cskk.ezoshosting.com/cs/
The impossible we understand right away - the obvious takes a little longer. _______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
On 07Jan2009 00:11, Chris Linstid <clinstid@gmail.com> wrote: | On Tue, Jan 6, 2009 at 6:29 PM, Cameron Simpson <cs@zip.com.au> wrote: | > You could put specific XTerm.vt100.color0, color1, etc settings in | > your .Xdefaults file and not be bothered in future if they change the | > defaults. Check out the section "VT100 Widget Resources" in man xterm. | > | > You might also find it useful to examine the file: | > /usr/X11/lib/X11/app-defaults/XTerm-color | > for the MacOSX xterm or: | > /opt/local/lib/X11/app-defaults/XTerm-color | > for the MacPorts version. I presume Fink's version is in the same place | > but with /sw instead of /opt/local. | > | > In fact, changes to that file probably underly the changes you see. | | Thanks for the tips Cameron, I'll take a look. | Do you think it's just a matter of 238 changing the defaults? I'd have thought so. But I have just installed 238 via MacPorts (since I still have 237 in MacOSX) and the app-defaults files are unchanged. -- Cameron Simpson <cs@zip.com.au> DoD#743
In case anyone else is having this problem and is interested in the solution... According to the xterm maintainer, it was a problem with the way that vim polls xterm for the available number of colors. In 238, he actually fixed how xterm was reporting it (because vim users were asking him to), but vim doesn't deal with it correctly (yet) and it screws up. (I hope I didn't mangle his explanation too much) I fixed this by adding the following to my .vimrc file before I set the color scheme: set t_Co=256 - Chris On Wed, Jan 7, 2009 at 1:30 AM, Cameron Simpson <cs@zip.com.au> wrote:
On 07Jan2009 00:11, Chris Linstid <clinstid@gmail.com> wrote: | On Tue, Jan 6, 2009 at 6:29 PM, Cameron Simpson <cs@zip.com.au> wrote: | > You could put specific XTerm.vt100.color0, color1, etc settings in | > your .Xdefaults file and not be bothered in future if they change the | > defaults. Check out the section "VT100 Widget Resources" in man xterm. | > | > You might also find it useful to examine the file: | > /usr/X11/lib/X11/app-defaults/XTerm-color | > for the MacOSX xterm or: | > /opt/local/lib/X11/app-defaults/XTerm-color | > for the MacPorts version. I presume Fink's version is in the same place | > but with /sw instead of /opt/local. | > | > In fact, changes to that file probably underly the changes you see. | | Thanks for the tips Cameron, I'll take a look. | Do you think it's just a matter of 238 changing the defaults?
I'd have thought so. But I have just installed 238 via MacPorts (since I still have 237 in MacOSX) and the app-defaults files are unchanged. -- Cameron Simpson <cs@zip.com.au> DoD#743 _______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
participants (3)
-
Cameron Simpson
-
Chris Linstid
-
Jeremy Huddleston