Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Limiting height of completion menu



On Sun, Dec 20, 2020 at 6:41 AM Stephane Chazelas <stephane@xxxxxxxxxxxx> wrote:
>
> 2020-12-19 14:15:30 -0800, Bart Schaefer:
> > half-lines () {
> >         print -n $(tput sc)
>
> Or if tput is to cover the cases where zsh/terminfo is not
> included:
>
>   tput sc

That doesn't actually work as expected; for some reason running "tput"
directly from the current shell causes a zle reset and the bug
returns, probably due to some sort of handling of the forked job.
Hiding it in a $(...) subshell prevents that (but the whole
formulation still has other problems).




Messages sorted by: Reverse Date, Date, Thread, Author