Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Limiting height of completion menu
2020-12-19 14:15:30 -0800, Bart Schaefer:
> On Sat, Dec 19, 2020 at 2:12 PM Vincent Bernat <bernat@xxxxxxxx> wrote:
> >
> > It also resets $LINES in my case.
>
> Yeah, I just noticed that. Sometimes you have to save ZLE from itself.
>
> half-lines () {
> print -n $(tput sc)
Or rather:
print -rn $terminfo[sc]
Or:
printf %s $terminfo[sc]
Or
echoti sc
Or if tput is to cover the cases where zsh/terminfo is not
included:
tput sc
> LINES=$((LINES/2))
Or:
(( LINES /= 2 ))
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author