gnu screen won't do 256 colors with xterm, rxvt, mrxvt
Hi folks!
I've just started using GNU screen -- wow! Only problem is, I can't figure out how to get 256 color support. I'm running it on mrxvt, and when I "tic mrxvt.terminfo" as recommended, I do get 256 colors on mrxvt. But within screen, no joy. Here's my .screenrc. It's basically the default Slackware .screenrc, plus a few suggested lines I insered and then commented out when they didn't work. I wouldn't mind switching to another terminal if necessary to get this to work--I really want 256 colors on Vim within screen--but neither xterm nor rxvt seemed to work either. Thanks in advance for any help! Code:
# |
Never felt the urge to see colours in screen, but did a quick google anyway ;}
http://frexx.de/xterm-256-notes/ Does that help? Cheers, Tink |
Turned out to be a simple line in .vimrc!
Thanks, Tinkster!
When I saw that site, i had an eerie feeling I'd seen it before, but whether or not I had, this time I finally read it properly. On my system, it turned out to be a mere tweak to Vim. Somehow, mrxvt was smart enough to start Vim in 256 color mode, but in screen, I had to tell Vim to do 256 color like so: vim -T xterm-256color However, I had also neglected to check the Vim Tips. And this is truly eerie; I've set up my bash to show a VimTip every time I start a new shell (which is a second or so of waiting, actually), and _right after_ I got vim working under screen, what tip should pop up but: http://www.vim.org/tips/tip.php?tip_id=1312 Which boils down to putting this line in .vimrc: set t_Co=256 That did the trick. So you can set the terminal in .vimrc, or use -T (or set an alias to use -T from the command line). On a weird side note: the two perl scripts on that link you gave to test for 256 color support ONLY worked under screen. On an xterm, rxvt, and mrxvt _without_ screen, they hung. But screen on mrxvt works (I didn't test screen on the other terminals). I'm afraid I may have messed something up in a desperate arcane tweak. But it doesn't matter much, since I want to use screen anyhow, I only mention it in case anyone else ever has a similar problem. No solution, I just noticed the same weirdness. Thanks again! Bill Powell |
All times are GMT -5. The time now is 11:02 AM. |