On Friday 01 July 2005 11:15 am, Andrew Lentvorski wrote:
> boblq wrote:
> > Yeh, I suppose you are right. I guess I was thrown off by the fact
> > that vi (actually vim) uses color to highlight syntax. The point
> > would be that it is a post processing of the file before display
> > that does that.
>
> Your terminal is likely some form of advanced ANSI or VTXXX.  You could
> probably use a terminal escape code sequence.
>
> Beyond that, I can't really offer much advice as I'm one of those
> intolerable emacs bigots.
>
> -a

Heh, 

Well I looked at the source code. Kind of ugly, as is any
large cross platform code, with a gazillion #ifdef s etc
and huge number options. 

But there is one function update_screen() that has as hook
right before displaying the line buffers a call to 
syn_stack_apply_changes(wp->w_buffer);

So I could sneak in there for the output. 

Then there is the input ... related question. Probably I can 
get at this thru termcap or terminfo? 

Hmm ... maybe if I just entered the correct ansi codes they 
would show up as color? I might not have to change the code
at all.  I just don't know what the ansi codes are or how to 
enter them from the keyboard ... but I suspect there is
a way to do it. Guess I will dig a little more.

boblq



-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to