On Fri, Nov 24, 2006 at 09:22:24AM +0800, Penguin Lover W.Kenworthy squawked: > I recently had cause to use "less" from a real console, not an xterm and > found that it really does colourise text. It has never done this in an > xterm - how do I turn it on? "man" isnt being very helpful here :( > > BillK
My best guess is the -R option: -R or --RAW-CONTROL-CHARS Like -r, but only ANSI "color" escape sequences are output in "raw" form. Unlike -r, the screen appearance is main- tained correctly in most cases. ANSI "color" escape sequences are sequences of the form: ESC [ ... m where the "..." is zero or more color specification char- acters For the purpose of keeping track of screen appear- ance, ANSI color escape sequences are assumed to not move the cursor. You can make less think that characters other than "m" can end ANSI color escape sequences by setting the environment variable LESSANSIENDCHARS to the list of characters which can end a color escape sequence. And you can make less think that characters other than the stan- dard ones may appear between the ESC and the m by setting the environment variable LESSANSIMIDCHARS to the list of characters which can appear. HTH, W -- (04:01:59) W: yep (04:02:02) W: I love linux (04:02:15) NJYWT: I love penguins Sortir en Pantoufles: up 91 days, 11:36 -- gentoo-user@gentoo.org mailing list