* Re: [gentoo-user] less and colourisation
@ 2006-11-24 18:04 99% ` Willie Wong
0 siblings, 0 replies; 1+ results
From: Willie Wong @ 2006-11-24 18:04 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2006-11-24 1:22 [gentoo-user] less and colourisation W.Kenworthy
2006-11-24 18:04 99% ` Willie Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox