On 30/06/12 20:24, Maximus ConEmu wrote:
Hi.

Not sure, if community is interested in subj, but...
I'm developer of ConEmu (Windows Console Emulator) wich supports xterm 256 
color extension of ANSI X3.64.
http://code.google.com/p/conemu-maximus5/wiki/Screenshots#ANSI_X3.64_and_xterm_256_colors_in_ConEmu

Vim "from the box" does not supports ansi codes, so small patch was created.
I'm not using Vim and have only superficial knowledge about it. So, this patch 
may be not perfect or not complete.

Any comments? Are here windows developers, interested in this feature?


I think Vim supports ansi codes out of the box if you can arrange to have 'term' set to "ansi". This may require a Vim build with +builtin_terms compiled-in when running on a system with no "ansi" termcap or equivalent.

Try the following (in your vimrc)

if !has('gui_running')
        echomsg "Found: Terminal" &term "with" &t_Co "colors"
        if has('builtin_terms')
            \ && ((&term == "pcterm") || (&term == "win32"))
                echomsg "Trying to set ANSI 256-color terminal"
                set term=ansi t_Co=256
                echomsg "Result: Terminal" &term "with" &t_Co "colors"
        endif
endif

then restart Vim.
- Does it display the messages?
        (Check with :messages shortly after startup)
- Can you use 256 colours in the terminal?

If it works, you can comment away the :echomsg lines by prefixing each of them with a double quote.


Best regards,
Tony.
--
Without ice cream life and fame are meaningless.

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui