DragonFly BSD
DragonFly submit List (threaded) for 2005-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: dfports/x11/xterm 196_3 -> 197


From: Emil Mikulic <emikulic@xxxxxxxxxx>
Date: Sat, 1 Jan 2005 17:42:59 +1100

On Thu, Dec 30, 2004 at 07:35:58AM +0100, Jeroen Ruigrok/asmodai wrote:
> -On [20041230 04:02], Emil Mikulic (emikulic@xxxxxxxxxx) wrote:
> >    let &t_Sf=nr2char(27).'[3%p1%dm'
> >    let &t_Sb=nr2char(27).'[4%p1%dm'
> >
> >(I think you missed the [s above)
> 
> Not really, those are the escape characters. ;)

You initially wrote:
>    set t_Sf=<ESC>3%p1%dm
>    set t_Sb=<ESC>4%p1%dm

Those really need to be:
     set t_Sf=<ESC>[3%p1%dm
     set t_Sb=<ESC>[4%p1%dm
                   ^
When you enter ESC as a literal escape and Vim displays it as ^[ :
     set t_Sf=^[[3%p1%dm
     set t_Sb=^[[4%p1%dm

Without the extra [ you will not get colours.  What you will get will be
quite amusing though.  ;)

	--Emil

Attachment: pgp00003.pgp
Description: PGP signature



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]