[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt show escape characters



On Fri, Nov 07, 2025 at 10:10:57AM -0500, Greg Wooledge wrote:
> On Fri, Nov 07, 2025 at 08:37:31 -0600, Mike McClain wrote:
> > Since installing trixie apt show ... is displaying 'ESC[1m', 'ESC[0m'
> > and the like. What might be the difference in my bookworm install to
> > the new trixie install that would cause that?
>
> You've probably got the LESS variable set in your environment.  I do
> too.  I get that too.
>
> If I run
>
>     (unset LESS; apt show bash)
>
> or
>
>     env -u LESS apt show bash
>
> then the raw control characters are passed through directly to the
> terminal as intended.

I've had 'export LESS=-aCMsi' in the environment for several versions
of Debian. I currently have both bookworm and trixie installs both
with the same environment settings, atleast that I set.
The bookworm install doesn't show those escapes as text yet in trixie
'apt show ...' does.
Suggestions where I might look to see what's causing this and correct it?

Thanks,
Mike
--
Enjoy yourself. It is later than you think.


Reply to: