Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: terminal width
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author