dfports/x11/xterm 196_3 -> 197

Emil Mikulic emikulic at dmr.ath.cx
Fri Dec 31 22:43:31 PST 2004


On Thu, Dec 30, 2004 at 07:35:58AM +0100, Jeroen Ruigrok/asmodai wrote:
> -On [20041230 04:02], Emil Mikulic (emikulic at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00003.pgp
Type: application/octet-stream
Size: 187 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20041231/f9c02056/attachment-0019.obj>


More information about the Submit mailing list