On 15/01/13 20:26, ZyX wrote:
[Tony Mechelynck wrote]
The ^[ in those two termcap entries is not a caret followed by a square
bracket, it is a control-bracket (a single byte) which is one of several
notations for the Esc character. I think you could use
backslash-specials with :let, as follows:


        :let &t_AB = "\e[48;5;%dm"
        :let &t_AF = "\e[38;5;%dm"


(see :help expr-quote) (DISCLAIMER: untested)

This should work. But I guess history of the subject is not necessary for terminal 
emulator writer: he already understood the issue correctly (“I have to change 
"^[" to real \x1B (Esc) symbol. Is this correct?”).  [...]

Yes, see ":help expr-quote" (without the quotes). All the double-quoted strings below (and a few others) have the same meaning (IIUC, the disclaimers about 'encoding' on that help page don't apply to the Escape character except in EBCDIC):

"\e"
"\<Esc>"
"\033"
"\x1b"
"\u001B"


Best regards,
Tony.
--
There is no right or wrong, there is only your personal opinion.
                 (Bram Moolenaar)

--
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