On Mon, Sep 22, 2025 at 03:13:20PM +0100, Chris Green wrote: > I have just bought an Android tablet to use in preference to my > Android smartphone. I am trying to get colours to work in vile on the > new tablet but I'm failing at the moment.
hmm - I don't have something like that, for testing.
But I can make guesses :-)
> Both have vile 9.8z installed. I have (I think!) copied all the vile
> configuration files across from the old one (where syntax
> highlighting works) to the new one (where it doesn't).
>
> They have virtually identical .profile and .bashrc, they have
> identical .vile.keywords and .vilerc files. Directory colouring works
> OK on the new one but I can't get any colour within vile on the new
> one.
>
> I have tried running the syntax highlighting commands manually by
> doing the following line by line in the new device:-
>
> source filters.rc
> setv $autocolor-hook HighlightFilter
> setv $read-hook HighlightFilter
> set autocolor=500
> set bcolor=default
running "vile -D" will turn on the trace feature. You might see some
issue in the [Trace] buffer, i.e., not reading one of the scripts.
The [Variables] display would show how vile is compile-time configured.
For instance, I have (among other settings):
$cfgopts = hypertext,locale,iconv,multibyte,perl,terminfo
$filter-list = c key m4 perl raku ruby sed tags ada as asm au3 awk
basic bat bnf cfg conf css cweb dcl def diff ecl erl esql est fdl hs html imake
info ini iss json latex lex lisp lua mail mailcap make mcrl md midl mms nmake
nr pas php pot ps ps1 py rc rcs rexx rpm rtf rust sccs scheme sh sml spell sql
tbl tc tcl texi ti tpu txt vile vlog wbt xml xq xres xs yacc yaml
$startup-file = .vilerc
$startup-path = /usr/share/vile
If it's listing "terminfo", "termcap" or curses in $cfgopts, then it could
be using ncurses.
> No errors are reported but there's no colours.
It might be simply a missing terminal description. "directory colors" aren't
helpful since (referring to dircolors and such) it's mostly hardcoded
(i.e., with little relationship to ncurses).
--
Thomas E. Dickey <[email protected]>
https://invisible-island.net
signature.asc
Description: PGP signature
