Subject: Re: groff update?
To: <>
From: David Laight <david@l8s.co.uk>
List: tech-userlevel
Date: 02/17/2003 15:09:28
> Doing the right thing requires parsing the escape sequences on input,
> and translating them to whatever is appropriate for the output device.
>
> I see no hint in the less man page that it will do that. A brief test
> suggests that it copies the escape sequences to the output without
> translation.
The code is worse that that! It assumes that everything from an ESC
to an 'm' is part of an ANSI escape sequence. So if your file
contains '\e[Htext at top of screen\n' that will be assumed to be a
color change change string and not counted.
David
--
David Laight: david@l8s.co.uk