Re: terminal width

Ray Andrews <[email protected]> Thu, 2 Apr 2026 16:38:19 -0700
Newsgroups gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user
Message-ID <[email protected]>

On 2026-04-02 16:22, Alexis wrote:
>
>
> My apologies if i'm not correctly understanding what you're after, but
> ansifilter(1):
>
> https://manpages.debian.org/trixie/ansifilter/ansifilter.1.en.html
>
> can strip ANSI escape sequences, and sed(1) could e.g. convert each
> tab to a single space.

Thanks, that's basically what I'm after.  Seems there are a few 
solutions.  'less -SREX' can do  it, and that's working here now. Also 
Stephane Chazelas shows this:

|nowrap() { [ -t 1 ] && tput rmam "$@"; local ret="$?" [ -t 1 ] && tput 
smam return "$ret" } alias nowrap='nowrap ' ... tho I haven't tried that 
yet. But Stephane is always right.|


>
>
> Alexis.
>